mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 20:46:23 +03:00
33 lines
791 B
Python
33 lines
791 B
Python
"""empty message
|
|
|
|
Revision ID: c42d8e7674e6
|
|
Revises: 02142c549a8c
|
|
Create Date: 2022-11-19 02:48:49.436977
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'c42d8e7674e6'
|
|
down_revision = '02142c549a8c'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('characters', schema=None) as batch_op:
|
|
batch_op.create_unique_constraint(None, ['owner'])
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('characters', schema=None) as batch_op:
|
|
batch_op.drop_constraint(None, type_='unique')
|
|
|
|
# ### end Alembic commands ###
|