Skip to content

Commit 8178ae4

Browse files
add column
1 parent 4bd14ca commit 8178ae4

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""Add host column
2+
3+
Revision ID: fc621eedc163
4+
Revises: 0d52976dc616
5+
Create Date: 2025-05-06 09:10:50.968001+00:00
6+
7+
"""
8+
9+
import sqlalchemy as sa
10+
from alembic import op
11+
12+
# revision identifiers, used by Alembic.
13+
revision = "fc621eedc163"
14+
down_revision = "0d52976dc616"
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
op.add_column(
21+
"products",
22+
sa.Column("host", sa.String(), server_default="osparc.io", nullable=True),
23+
)
24+
25+
26+
def downgrade():
27+
op.drop_column("products", "host")

packages/postgres-database/src/simcore_postgres_database/models/products.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ class ProductLoginSettingsDict(TypedDict, total=False):
154154
nullable=False,
155155
doc="Regular expression that matches product hostname from an url string",
156156
),
157+
sa.Column(
158+
"host",
159+
sa.String,
160+
server_default="osparc.io",
161+
doc="Product hostname",
162+
),
157163
# EMAILS --------------------
158164
sa.Column(
159165
"support_email",

0 commit comments

Comments
 (0)