File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
packages/postgres-database/src/simcore_postgres_database/migration/versions Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ """add data to licensed_items
2+
3+ Revision ID: 4f31760a63ba
4+ Revises: 1bc517536e0a
5+ Create Date: 2025-01-29 16:51:16.453069+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 = "4f31760a63ba"
14+ down_revision = "1bc517536e0a"
15+ branch_labels = None
16+ depends_on = None
17+
18+
19+ def upgrade ():
20+ # ### commands auto generated by Alembic - please adjust! ###
21+ op .add_column (
22+ "licensed_items" ,
23+ sa .Column (
24+ "licensed_resource_data" ,
25+ postgresql .JSONB (astext_type = sa .Text ()),
26+ nullable = True ,
27+ ),
28+ )
29+ op .add_column (
30+ "licensed_items" ,
31+ sa .Column (
32+ "trashed" ,
33+ sa .DateTime (timezone = True ),
34+ nullable = True ,
35+ comment = "The date and time when the licensed_item was marked as trashed. Null if the licensed_item has not been trashed [default]." ,
36+ ),
37+ )
38+ # ### end Alembic commands ###
39+
40+
41+ def downgrade ():
42+ # ### commands auto generated by Alembic - please adjust! ###
43+ op .drop_column ("licensed_items" , "trashed" )
44+ op .drop_column ("licensed_items" , "licensed_resource_data" )
45+ # ### end Alembic commands ###
You can’t perform that action at this time.
0 commit comments