Relative Content

Tag Archive for postgresqldockerfastapialembic

How to migrate sqlmodel into database?

I have the microservice project:
https://github.com/Alex-Kalinin-jr/micro
There, in “pure_html” branch i have completed frame which works on localhost.
I launch the app with docker-compose (over makefile command “make up”)
Then i do a migration: make migratedb
Then i should launch: make filldb
For the sake of testing i download repo again and try to do these actions.
And sometimes the command “make migratedb” is launched well,
but sometimes it is launched with errors and migration file is not created.
Please, help.