-
Notifications
You must be signed in to change notification settings - Fork 218
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
feat: support declarative schema with db diff #2099
Conversation
e34226a
to
0cec571
Compare
Pull Request Test Coverage Report for Build 8933882059Details
💛 - Coveralls |
0cec571
to
6c78d78
Compare
@sweatybridge I tried creating a Can you check if this still works or has been deprecated? |
oh.. you need to stop the local stack first with |
Thank you so much, I’ll give it a try! By the way, I think this feature should be highlighted in the official docs. It’s incredibly useful and essential for efficiently managing migrations. |
What kind of change does this PR introduce?
closes #1215
What is the new behavior?
supabase/schemas
(they will be run in lexical order)supabase db dump --local -f supabase/schemas/base.sql
supabase db diff
A new local database will be created from declared schemas for diffing.
Additional context
Add any other context or screenshots.