Closed inimaz closed 4 months ago
Fix the alembic downgrades/upgrades to be able to work with the new schema.
Add the db url to your env variables export DATABASE_URL=YOUR_DB_URL
export DATABASE_URL=YOUR_DB_URL
Downgrade the db to start from scratch hatch run api:downgrade-db
hatch run api:downgrade-db
Upgrade to the latest status hatch run api:setup-db
hatch run api:setup-db
(This has been used to deploy to dev)
dev
Fix the alembic downgrades/upgrades to be able to work with the new schema.
How to test this
Add the db url to your env variables
export DATABASE_URL=YOUR_DB_URL
Downgrade the db to start from scratch
hatch run api:downgrade-db
Upgrade to the latest status
hatch run api:setup-db
(This has been used to deploy to
dev
)