mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
37 lines
1,018 B
Python
37 lines
1,018 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: a5013ff0a00a
|
||
|
Revises: ccbfb61eda0d
|
||
|
Create Date: 2021-11-17 16:48:52.743798
|
||
|
|
||
|
"""
|
||
|
import sqlalchemy_utils
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'a5013ff0a00a'
|
||
|
down_revision = 'ccbfb61eda0d'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('deleted_directory',
|
||
|
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
|
||
|
sa.Column('created_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=False),
|
||
|
sa.Column('updated_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=True),
|
||
|
sa.Column('name', sa.String(length=128), nullable=False),
|
||
|
sa.PrimaryKeyConstraint('id'),
|
||
|
sa.UniqueConstraint('name')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('deleted_directory')
|
||
|
# ### end Alembic commands ###
|