You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context:
We use alembic for migrations and follow a rule that no down migrations, and do dry run in alembic in local to avoid problems.
For managing deployment, we have a job in k8s that runs alembic migrations (in a single transaction), in case it succeeds upgrades services, or else it won't.
Few questions
How to insert default data? is it possible in declarative workflow?
How to update column values/apply a function? Say I need to transform some cols in a table, or update some key in jsonb on the basis of some condition. I know that this is an anti pattern and not advised, but is there a way?
Can I use both declarative (for schema migrations) & versioned (for data migrations)? Is it a good practice?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For context:
We use alembic for migrations and follow a rule that
no down migrations
, and do dry run in alembic in local to avoid problems.For managing deployment, we have a job in k8s that runs alembic migrations (in a single transaction), in case it succeeds upgrades services, or else it won't.
Few questions
Beta Was this translation helpful? Give feedback.
All reactions