SQLAlchemy Integer vs INTEGER
This commit is contained in:
parent
ce8440eb3d
commit
883f765ca0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def downgrade():
|
||||||
"""
|
"""
|
||||||
Downgrade will truncate the milliseconds.
|
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"""
|
op.execute(f"""
|
||||||
UPDATE {table_name}
|
UPDATE {table_name}
|
||||||
SET created_utc =
|
SET created_utc =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue