-
Notifications
You must be signed in to change notification settings - Fork 232
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
1 parent
633e42a
commit 19143b8
Showing
7 changed files
with
334 additions
and
181 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
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
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,43 @@ | ||
"""empty message | ||
Revision ID: 4ce46845a4b0 | ||
Revises: | ||
Create Date: 2024-07-08 12:38:55.095000 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '4ce46845a4b0' | ||
down_revision = '97d142f05ca0' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
conn = op.get_bind() | ||
inspector = sa.Inspector.from_engine(conn) | ||
|
||
if 'doi_mapping' not in inspector.get_table_names(): | ||
op.create_table('doi_mapping', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('dataset_doi_old', sa.String(length=120), nullable=True), | ||
sa.Column('dataset_doi_new', sa.String(length=120), nullable=True), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
|
||
if 'webhook' not in inspector.get_table_names(): | ||
op.create_table('webhook', | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('webhook') | ||
op.drop_table('doi_mapping') | ||
# ### end Alembic commands ### |
Oops, something went wrong.