Merge branch '601_convert_created_utc_to_timestamp_for_commentflags' into 601_convert_created_utc_to_timestamp_for_commentvotes

This commit is contained in:
Viet Than 2023-07-20 21:33:08 -04:00
commit 201863bd36

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 =