Skip to content

Commit

Permalink
upgraded upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 16, 2024
1 parent 9dafe4d commit 59d0962
Showing 1 changed file with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
"""remove submit timestamp
Revision ID: 23c0b8409738
Revision ID: 52a0e8148dd5
Revises: 77ac824a77ff
Create Date: 2024-12-16 07:30:03.814989+00:00
Create Date: 2024-12-16 14:55:15.114923+00:00
"""
import sqlalchemy as sa
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = "23c0b8409738"
down_revision = "77ac824a77ff"
revision = '52a0e8148dd5'
down_revision = '77ac824a77ff'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("comp_tasks", "submit")
op.drop_column('comp_tasks', 'submit')
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"comp_tasks",
sa.Column(
"submit",
postgresql.TIMESTAMP(timezone=True),
autoincrement=False,
nullable=True,
),
)
op.add_column('comp_tasks', sa.Column('submit', postgresql.TIMESTAMP(timezone=True), autoincrement=False, nullable=True))
# ### end Alembic commands ###

0 comments on commit 59d0962

Please sign in to comment.