-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure existing db code works properly with supabase postgres. #56
Comments
|
Can I work on this? |
i can take up the subtask too with @darshannere. if not assigned yet |
This is a triaging issue where not a lot of code change will be required. You need to verify that the drizzle orm supports supabase as a db. |
@harshil15999 I noticed nothing has been said so far regarding this. I looked into what you mentioned on your last comment, and yes, Drizzle ORM supports Supabase postgres. I made a connection to the sample database I set up with Supabase and it works with the current implementation. All I had to do was update certain environment variables in the env file and I ran the migration script and it worked. |
@funkycadet can I see the supabase data . Post which we can close this issue Cc- |
@funkycadet Yes. I was aware that it supports. Just list down what additional variables you had to pass and let @harshil15999 verify your database, maybe we can create a test free account, share credentials here and delete the account as soon as we close the issue. |
Can I take up this issue? |
This issue is already in progress by someone else |
Oh okay. I didn't submit any data. I was able to run the migrations though. Here's how it looks: |
@funkycadet Yes. I was aware that it supports. Just list down what additional variables you had to pass and let @harshil15999 verify your database, maybe we can create a test free account, share credentials here and delete the account as soon as we close the issue. Okay, I just added a DATABASE_URL to my env file and used it directly in the drizzle.config file. It isn't so different from what was already there cause I filled it with the same data as the DATABASE_URL and was still able to run the migrations on the db. |
Can you try to create some job postings / hooks, etc? |
If you could direct me on how to do that, I'd really appreciate it. I'm more of a backend guy, so quite some stuff looks strange to me in the codebase. |
I mean using the UI, create those. This is to ensure that inserts, updates and selects work properly. |
I think you have not been logged in correctly. Did you do this: Requirements: A PostgreSQL instance up-and-running.Clone the repo and cd into the folder.npm i -g yarn # install yarn package manager, if you don't have already. |
@funkycadet yes that was the issue from my end, fixed it. |
yep, that was the first thing I did before anything else |
oh okay. i'll sync changes with my fork and check it out |
@amandesai01 The pages are still blank and login doesn't work |
That's weird. Are you running on port 3001? do you see error or blank page? can you post error log if any? |
Delete cookies and try again. |
That issue is actually coming from profilecity. Let's ignore that, and conclude that postgres from supabase works well with drizzle. Thanks @funkycadet and @harshil15999 for all the efforts. |
No description provided.
The text was updated successfully, but these errors were encountered: