Replies: 6 comments 6 replies
-
I'm interested to know more about this as well. Specifically, If I can pull an existing project's DB schema locally and then make changes and push it back. |
Beta Was this translation helpful? Give feedback.
-
Seeing as this question is left unanswered and I was also looking for information on this today, here's what I know: If you want to make local changes and push it to the supabase remote db you need to do a couple of things.
If you made changes on the Remote and need to "pull" those changes to local, you need to to use the You can confirm if this was successful by checking the supabase portal for your app if the table got pushed.
I don't see this command supabase db commit, is there some discrepancy between your remote and local? Hopefully someone from the supabase team can help as it's a fairly new product; still in public beta |
Beta Was this translation helpful? Give feedback.
-
Things to add to this: You should only run Once you have migration files in the One error I kept getting when running
The fix was to remove the foreign key relationship on email between my |
Beta Was this translation helpful? Give feedback.
-
What if I want to promote changes from local to staging, prior to production. Such as, I want to have a different user DB between dev vs production. I will need to test out 1) app subscription permissions. So I want to test out that a user can only see the app if they have paid for it, not just authorized a session. |
Beta Was this translation helpful? Give feedback.
-
does anyone know how you get your supabase docker containers to update to the latest image? Is it just updating the supabase cli? |
Beta Was this translation helpful? Give feedback.
-
Before writing what could seem to be a rant I must thank you for building this extremely useful tool. It is truly amazing.
I have read https://supabase.com/docs/guides/local-development a few times.
And tried to implement it.
But I seem to have not understood the gist of it. It seems that is not explained (well).
Symptoms of my bad understanding are:
supabase stop
,supabase start
), I have to rebuild the entire database from null because it seems to be empty 🤔supabase db
is some sort of git like thing. But the combination of that seeming not to be documented and me having primarily used ui tools to interact with git probably leads to me not understanding itsupabase migration
andsupabase db
commands. It seems that is not explained anywhere either. It makes me wonder that in the docs under the migration titlesupabase migration
is not even used/demonstratedsupabase start
I now get an error (it worked for a few days):Error: Error starting database: ERROR: type "row_revs" does not exist
. I have absolutely no idea how to get rid of it.supabase db reset
did not help. I had to nuke the supabase folder and re-init. But it seems this happens again after runningsupabase db commit
😢What I ask for is a better explanation of:
Or maybe just point me to the part of the docs I missed 🙄.
Beta Was this translation helpful? Give feedback.
All reactions