SQLAlchemy Integer vs INTEGER

This commit is contained in:
Viet Than 2023-07-20 21:32:45 -04:00
parent ce8440eb3d
commit 883f765ca0

View file

@ -40,7 +40,7 @@ def downgrade():
"""
Downgrade will truncate the milliseconds.
"""
op.add_column(table_name, sa.Column('created_utc', sa.INTEGER(), server_default=sa.text('0'), nullable=True))
op.add_column(table_name, sa.Column('created_utc', sa.Integer(), server_default=sa.text('0'), nullable=True))
op.execute(f"""
UPDATE {table_name}
SET created_utc =