-
Notifications
You must be signed in to change notification settings - Fork 91
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: dev flag for generating migrations #496
base: main
Are you sure you want to change the base?
Conversation
To try out make some changes and run |
This is great! I've got a busy week ahead of me, but will take a look when I get the chance 🙇 |
cb7abe6
to
af4f4b6
Compare
So @sevenseacat has made two good points about the current solution here:
I think #1 will need to be a part of this PR because otherwise we'll be putting users dbs in a bad state (they can't roll back the migrations because they've been deleted). #2 can be done in a followup. |
alright, thanks for direction. working on #1, will remove last commit which is refactor, that's for seperate PR. 👍 |
275e6b6
to
28d53c3
Compare
Do the tests cover the rollback behavior? |
right, I'll expand it calling migrate. 👍 |
@zachdaniel
The duplication happens because of the two |
Hmm...I think we should be making the sandbox and non sandbox repo use a different path for their migrations then? |
Okay so it gets tricky. Because migration path for any migration is determined:
So it's either configured through This simple assertion turned out way harder to prove than anticipated. 😓 |
I'll work on it more, try to find a path. 🐛 |
#490
For now I'm just adding
_dev
everywhere and I left the timestamp which gives it uniqueness.For now just deleting
_dev
files when--dev
is not provided.Not sure if in the right direction, need feedback. Putting this into draft.
Contributor checklist