adds target-exchange and initial migrations
This commit is contained in:
33
migrations/versions/14ceaaaa6e85_initial_create.py
Normal file
33
migrations/versions/14ceaaaa6e85_initial_create.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""initial create
|
||||
|
||||
Revision ID: 14ceaaaa6e85
|
||||
Revises:
|
||||
Create Date: 2021-09-19 23:52:49.797793
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '14ceaaaa6e85'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('target-exchange',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('name', sa.String(length=255), nullable=False),
|
||||
sa.PrimaryKeyConstraint('id'),
|
||||
sa.UniqueConstraint('name')
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('target-exchange')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user