File tree Expand file tree Collapse file tree 2 files changed +42
-6
lines changed
packages/postgres-database/src/simcore_postgres_database Expand file tree Collapse file tree 2 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 1+ """remove workbench from projects
2+
3+ Revision ID: 06257f7b3406
4+ Revises: 5f88b513cd4c
5+ Create Date: 2025-01-29 12:52:51.020245+00:00
6+
7+ """
8+ import sqlalchemy as sa
9+ from alembic import op
10+ from sqlalchemy .dialects import postgresql
11+
12+ # revision identifiers, used by Alembic.
13+ revision = "06257f7b3406"
14+ down_revision = "5f88b513cd4c"
15+ branch_labels = None
16+ depends_on = None
17+
18+
19+ def upgrade ():
20+ # ### commands auto generated by Alembic - please adjust! ###
21+ op .drop_column ("projects" , "workbench" )
22+ # ### end Alembic commands ###
23+
24+
25+ def downgrade ():
26+ # ### commands auto generated by Alembic - please adjust! ###
27+ op .add_column (
28+ "projects" ,
29+ sa .Column (
30+ "workbench" ,
31+ postgresql .JSON (astext_type = sa .Text ()),
32+ autoincrement = False ,
33+ nullable = False ,
34+ ),
35+ )
36+ # ### end Alembic commands ###
Original file line number Diff line number Diff line change @@ -95,12 +95,12 @@ class ProjectType(enum.Enum):
9595 server_default = sa .text ("'{}'::jsonb" ),
9696 doc = "DEPRECATED: Read/write/delete access rights of each group (gid) on this project" ,
9797 ),
98- sa .Column (
99- "workbench" ,
100- sa .JSON ,
101- nullable = False ,
102- doc = "Pipeline with the project's workflow. Schema in models_library.projects.Workbench" ,
103- ),
98+ # sa.Column(
99+ # "workbench",
100+ # sa.JSON,
101+ # nullable=False,
102+ # doc="Pipeline with the project's workflow. Schema in models_library.projects.Workbench",
103+ # ),
104104 sa .Column (
105105 "ui" ,
106106 JSONB ,
You can’t perform that action at this time.
0 commit comments