[add] migration script
This commit is contained in:
30
api/migrations/versions/4e89970f9e7c_202603271515.py
Normal file
30
api/migrations/versions/4e89970f9e7c_202603271515.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""202603271515
|
||||
|
||||
Revision ID: 4e89970f9e7c
|
||||
Revises: 6b8a461148ff
|
||||
Create Date: 2026-03-27 15:12:27.518344
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '4e89970f9e7c'
|
||||
down_revision: Union[str, None] = '6b8a461148ff'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('phone', sa.String(length=50), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('users', 'phone')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user