33 lines
843 B
Python
33 lines
843 B
Python
|
"""Fix updated model
|
||
|
|
||
|
Revision ID: 3e5a3cd79124
|
||
|
Revises: 6da8bfcff69e
|
||
|
Create Date: 2025-03-29 18:07:05.382646
|
||
|
|
||
|
"""
|
||
|
from typing import Sequence, Union
|
||
|
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision: str = '3e5a3cd79124'
|
||
|
down_revision: Union[str, None] = '6da8bfcff69e'
|
||
|
branch_labels: Union[str, Sequence[str], None] = None
|
||
|
depends_on: Union[str, Sequence[str], None] = None
|
||
|
|
||
|
|
||
|
def upgrade() -> None:
|
||
|
"""Upgrade schema."""
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_unique_constraint(None, 'users', ['id'])
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade() -> None:
|
||
|
"""Downgrade schema."""
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_constraint(None, 'users', type_='unique')
|
||
|
# ### end Alembic commands ###
|