use TIMESTAMP to match up with model declaration of commentflags

This commit is contained in:
Viet Than 2023-07-10 23:34:50 -04:00
parent aa6882506d
commit 82d404bafb

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 =