prefer-text-field
#
problemChanging the size of a varchar
field requires an ACCESS EXCLUSIVE
lock, that will prevent all reads and writes to the table.
#
solutionUse a text field with a CHECK CONSTRAINT
makes it easier to change the
max length. See the constraint-missing-not-valid
rule.
Instead of:
Use:
#
solution for alembic and sqlalchemyInstead of:
Use: