-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
15 deletions.
There are no files selected for viewing
22 changes: 7 additions & 15 deletions
22
...s/23c0b8409738_remove_submit_timestamp.py → ...s/52a0e8148dd5_remove_submit_timestamp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ### |