CostHive/migrations/versions/c9dcd301d327_users_table.py
Lunaresk e73cd46611 major: new repo structure
Moved the client and server in different repositories.
2022-02-03 09:59:48 +01:00

33 lines
724 B
Python

"""users table
Revision ID: c9dcd301d327
Revises:
Create Date: 2022-01-20 22:58:43.707307
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c9dcd301d327'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('user',
sa.Column('id', sa.String(length=10), nullable=False),
sa.Column('name', sa.String(length=64), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('user')
# ### end Alembic commands ###