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-10 23:39:04 -04:00
commit ee23d37b52

View file

@ -17,7 +17,7 @@ depends_on = None
def upgrade():
op.add_column('commentflags', sa.Column('created_timestampz', sa.DateTime(timezone=True), nullable=False, server_default=sa.text('NOW()')))
op.add_column('commentflags', sa.Column('created_timestampz', sa.TIMESTAMP(timezone=True), nullable=False, server_default=sa.text('NOW()')))
op.execute("""
UPDATE commentflags
SET created_timestampz =