From 59d0962d1e98b739cc58d439959d0562ee3ac9f3 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:55:40 +0100 Subject: [PATCH] upgraded upgrade --- ...> 52a0e8148dd5_remove_submit_timestamp.py} | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) rename packages/postgres-database/src/simcore_postgres_database/migration/versions/{23c0b8409738_remove_submit_timestamp.py => 52a0e8148dd5_remove_submit_timestamp.py} (54%) diff --git a/packages/postgres-database/src/simcore_postgres_database/migration/versions/23c0b8409738_remove_submit_timestamp.py b/packages/postgres-database/src/simcore_postgres_database/migration/versions/52a0e8148dd5_remove_submit_timestamp.py similarity index 54% rename from packages/postgres-database/src/simcore_postgres_database/migration/versions/23c0b8409738_remove_submit_timestamp.py rename to packages/postgres-database/src/simcore_postgres_database/migration/versions/52a0e8148dd5_remove_submit_timestamp.py index 889b850f48d..8589578abe7 100644 --- a/packages/postgres-database/src/simcore_postgres_database/migration/versions/23c0b8409738_remove_submit_timestamp.py +++ b/packages/postgres-database/src/simcore_postgres_database/migration/versions/52a0e8148dd5_remove_submit_timestamp.py @@ -1,36 +1,28 @@ """remove submit timestamp -Revision ID: 23c0b8409738 +Revision ID: 52a0e8148dd5 Revises: 77ac824a77ff -Create Date: 2024-12-16 07:30:03.814989+00:00 +Create Date: 2024-12-16 14:55:15.114923+00:00 """ -import sqlalchemy as sa from alembic import op +import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. -revision = "23c0b8409738" -down_revision = "77ac824a77ff" +revision = '52a0e8148dd5' +down_revision = '77ac824a77ff' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.drop_column("comp_tasks", "submit") + op.drop_column('comp_tasks', 'submit') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.add_column( - "comp_tasks", - sa.Column( - "submit", - postgresql.TIMESTAMP(timezone=True), - autoincrement=False, - nullable=True, - ), - ) + op.add_column('comp_tasks', sa.Column('submit', postgresql.TIMESTAMP(timezone=True), autoincrement=False, nullable=True)) # ### end Alembic commands ###