Skip to content

Commit 0f674ad

Browse files
committed
removed submit column
1 parent a7d1e3a commit 0f674ad

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""remove submit timestamp
2+
3+
Revision ID: 23c0b8409738
4+
Revises: 77ac824a77ff
5+
Create Date: 2024-12-16 07:30:03.814989+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 = "23c0b8409738"
14+
down_revision = "77ac824a77ff"
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("comp_tasks", "submit")
22+
# ### end Alembic commands ###
23+
24+
25+
def downgrade():
26+
# ### commands auto generated by Alembic - please adjust! ###
27+
op.add_column(
28+
"comp_tasks",
29+
sa.Column(
30+
"submit",
31+
postgresql.TIMESTAMP(timezone=True),
32+
autoincrement=False,
33+
nullable=True,
34+
),
35+
)
36+
# ### end Alembic commands ###

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ class NodeClass(enum.Enum):
7777
nullable=True,
7878
doc="current progress of the task if available",
7979
),
80-
# utc timestamps for submission/start/end
81-
sa.Column(
82-
"submit", sa.DateTime(timezone=True), doc="UTC timestamp for task submission"
83-
),
8480
sa.Column(
8581
"start", sa.DateTime(timezone=True), doc="UTC timestamp when task started"
8682
),

0 commit comments

Comments
 (0)