-
Notifications
You must be signed in to change notification settings - Fork 380
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
Add Alembiс for db migrations #562
base: main
Are you sure you want to change the base?
Conversation
Currently, every time the library is opened, a empty migration file is created. And at this moment I don't know how to to avoid creating empty migration files and leave them to be created automatically. Only way that i see is manual addition of migration files by developers (I'm not expert here, so i think it may cause errors) Need help |
see this commit addressing some issues mentioned
|
Fix alembic configuration
I am very grateful for your help. As far as I understand, if someone changes the models, they will have to create a migration file. I will remove the automatic creation of migration files and test how everything works now |
If I understand you correctly, we can also not change imports and not move In In that way we can use alembic in root dir and imports will be ok. If I missed something let me know |
Apply init migration to alembic_current Remove auto creation of migration file
it doesnt work for me. When I try to run TS from your branch and open a library, I end up with this error:
|
Fixed it .bat and .sh files. We must run the application from Before the fix, if we ran the program via |
For #561
Migrations should be created and applied automatically when user opens library