Fix: Alembic upgrade failed

This commit is contained in:
Amritanshu Agrawal 2023-12-28 14:21:42 +05:30
parent 78af684b50
commit 576940471a

View File

@ -53,8 +53,8 @@ def upgrade():
)
op.add_column("products", sa.Column("water", sa.Numeric(precision=15, scale=5), server_default="0", nullable=False))
op.add_column("product_groups", sa.Column("nutritional", sa.Boolean(), server_default=False, nullable=False))
op.add_column("product_groups", sa.Column("ice_cream", sa.Boolean(), server_default=False, nullable=False))
op.add_column("product_groups", sa.Column("nutritional", sa.Boolean(), server_default=sa.text("false"), nullable=False))
op.add_column("product_groups", sa.Column("ice_cream", sa.Boolean(), server_default=sa.text("false"), nullable=False))
# ### end Alembic commands ###