-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Aratz/refactor_rebased
Remove support for mover
- Loading branch information
Showing
27 changed files
with
1,001 additions
and
1,278 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Drop DDSProject table | ||
Revision ID: 74b309c44134 | ||
Revises: 8a4cc1553379 | ||
Create Date: 2022-06-16 15:37:24.124003 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '74b309c44134' | ||
down_revision = '8a4cc1553379' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.drop_table('dds_projects') | ||
op.add_column( | ||
'delivery_orders', | ||
sa.Column('ngi_project_name', sa.String(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('delivery_orders', 'ngi_project_name') | ||
op.create_table( | ||
'dds_projects', | ||
sa.Column('dds_project_id', sa.String(), nullable=False), | ||
sa.Column('project_name', sa.String(), nullable=True), | ||
sa.PrimaryKeyConstraint('dds_project_id') | ||
) |
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""decommission mover | ||
Revision ID: 8a4cc1553379 | ||
Revises: 85082f64ccd0 | ||
Create Date: 2022-06-02 10:35:30.789457 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8a4cc1553379' | ||
down_revision = '85082f64ccd0' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('delivery_orders') as batch_op: | ||
batch_op.drop_column('mover_delivery_id') | ||
batch_op.drop_column('md5sum_file') | ||
batch_op.alter_column('mover_pid', new_column_name='dds_pid') | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('delivery_orders') as batch_op: | ||
batch_op.alter_column('dds_pid', new_column_name='mover_pid') | ||
op.add_column('delivery_orders', sa.Column('md5sum_file', sa.String(), nullable=True)) | ||
op.add_column('delivery_orders', sa.Column('mover_delivery_id', sa.String(), nullable=True)) |
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
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
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
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
Oops, something went wrong.