mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
fixed new_column type
This commit is contained in:
@@ -66,6 +66,7 @@ def upgrade() -> None:
|
||||
)
|
||||
batch_op.alter_column(
|
||||
"last_edited_at",
|
||||
existing_type=sa.DateTime(timezone=True),
|
||||
new_column_name="updated_at",
|
||||
nullable=False,
|
||||
)
|
||||
@@ -122,6 +123,7 @@ def downgrade() -> None:
|
||||
with op.batch_alter_table("rom_notes", schema=None) as batch_op:
|
||||
batch_op.alter_column(
|
||||
"updated_at",
|
||||
existing_type=sa.DateTime(timezone=True),
|
||||
new_column_name="last_edited_at",
|
||||
nullable=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user