Frozen CreateTable operation so making changes to schema is actually possible#26
Frozen CreateTable operation so making changes to schema is actually possible#26
Conversation
|
Can you elaborate a little more on "frozen CreateTable" and "so making changes to schema is actually possible"? Do you mean as opposed to making migrations? I'm trying to follow your reasoning while reviewing your code. |
If you create a migration with operation |
|
This is similar to how alembic migrations work - the list of fields, types, indexes etc are frozen when migration is created. |
|
Ah gotcha, makes sense ... thanks for elaborating 👌 |
Migrations should use schema definition frozen in time at the time of creation so that updating models code doesn't automatically affect a historical migration.