adds target-exchange and initial migrations

This commit is contained in:
Gardient
2021-09-19 23:55:36 +03:00
parent cc44c4056e
commit 472f682c58
11 changed files with 273 additions and 3 deletions

View 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 ###