Skip to content

Commit 65e9fc2

Browse files
merging migration scripts
1 parent e43ab9d commit 65e9fc2

File tree

3 files changed

+7
-74
lines changed

3 files changed

+7
-74
lines changed

packages/postgres-database/src/simcore_postgres_database/migration/versions/27b5ea128a2a_add_comp_run_snapshot_tasks_table_3.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/postgres-database/src/simcore_postgres_database/migration/versions/47faea7f09c2_add_comp_run_snapshot_tasks_table_2.py

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""add comp_run_snapshot_tasks table
22
3-
Revision ID: dfa87810f245
3+
Revision ID: ae0f63bb3c86
44
Revises: 278daef7e99d
5-
Create Date: 2025-05-26 14:17:04.227338+00:00
5+
Create Date: 2025-05-27 14:12:10.926590+00:00
66
77
"""
88

@@ -11,7 +11,7 @@
1111
from sqlalchemy.dialects import postgresql
1212

1313
# revision identifiers, used by Alembic.
14-
revision = "dfa87810f245"
14+
revision = "ae0f63bb3c86"
1515
down_revision = "278daef7e99d"
1616
branch_labels = None
1717
depends_on = None
@@ -88,10 +88,6 @@ def upgrade():
8888
server_default=sa.text("'1900-01-01T00:00:00Z'::timestamptz"),
8989
nullable=True,
9090
),
91-
sa.ForeignKeyConstraint(
92-
["project_id"],
93-
["comp_pipeline.project_id"],
94-
),
9591
sa.ForeignKeyConstraint(
9692
["run_id"],
9793
["comp_runs.run_id"],
@@ -101,10 +97,14 @@ def upgrade():
10197
),
10298
sa.PrimaryKeyConstraint("snapshot_task_id"),
10399
)
100+
op.add_column(
101+
"comp_runs", sa.Column("dag_adjacency_list", sa.JSON(), nullable=True)
102+
)
104103
# ### end Alembic commands ###
105104

106105

107106
def downgrade():
108107
# ### commands auto generated by Alembic - please adjust! ###
108+
op.drop_column("comp_runs", "dag_adjacency_list")
109109
op.drop_table("comp_run_snapshot_tasks")
110110
# ### end Alembic commands ###

0 commit comments

Comments
 (0)