SQLAlchemy Integer vs INTEGER
This commit is contained in:
parent
201863bd36
commit
93e0c53d92
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def upgrade():
|
|||
|
||||
|
||||
def downgrade():
|
||||
op.add_column(table_name, sa.Column(from_column, sa.INTEGER(), server_default=sa.text('0'), nullable=True))
|
||||
op.add_column(table_name, sa.Column(from_column, sa.Integer(), server_default=sa.text('0'), nullable=True))
|
||||
op.execute(f"""
|
||||
UPDATE {table_name}
|
||||
SET {from_column} =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue