Every time i change the db model I have to wipe everything in the db and start over. This is fine in dev since theres no real data but becomes a problem when we continue to develop after deployment.
It seems the reccomended solution for this is Alembic https://lucasgabrielb.com/en/posts/alembic-and-sqlmodel-database-migrations-in-python/
Should be implemented with 48d272d4d6
To add migration:
after modifying models alembic check
if change alembic revision --autogenerate -m "message"
alembic upgrade head to apply
Should be implemented with 48d272d4d69dd0032714d33ad6f5684e760904b5
To add migration:
after modifying models `alembic check`
if change `alembic revision --autogenerate -m "message"`
`alembic upgrade head` to apply
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Every time i change the db model I have to wipe everything in the db and start over. This is fine in dev since theres no real data but becomes a problem when we continue to develop after deployment.
It seems the reccomended solution for this is Alembic https://lucasgabrielb.com/en/posts/alembic-and-sqlmodel-database-migrations-in-python/
Should be implemented with
48d272d4d6To add migration:
after modifying models
alembic checkif change
alembic revision --autogenerate -m "message"alembic upgrade headto apply