use TIMESTAMP to match up with model declaration of commentflags
This commit is contained in:
parent
aa6882506d
commit
82d404bafb
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue