mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 20:46:23 +03:00
37 lines
1000 B
Python
37 lines
1000 B
Python
"""empty message
|
|
|
|
Revision ID: 8f02337dbef0
|
|
Revises:
|
|
Create Date: 2022-11-18 17:37:55.798611
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '8f02337dbef0'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('users',
|
|
sa.Column('id', sa.Integer(), autoincrement=False, nullable=False),
|
|
sa.Column('first_name', sa.String(length=255), nullable=True),
|
|
sa.Column('last_name', sa.String(length=255), nullable=True),
|
|
sa.Column('username', sa.String(length=255), nullable=False),
|
|
sa.Column('registered_on', sa.DateTime(), nullable=False),
|
|
sa.Column('is_admin', sa.Boolean(), nullable=False),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('users')
|
|
# ### end Alembic commands ###
|