forked from kodorvan/stcs
Added alembic migrations
This commit is contained in:
38
alembic/versions/45977e9d8558_updated_order_quantity.py
Normal file
38
alembic/versions/45977e9d8558_updated_order_quantity.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""Updated order quantity
|
||||
|
||||
Revision ID: 45977e9d8558
|
||||
Revises: fd8581c0cc87
|
||||
Create Date: 2025-09-22 16:59:40.415398
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '45977e9d8558'
|
||||
down_revision: Union[str, Sequence[str], None] = 'fd8581c0cc87'
|
||||
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.alter_column('user_additional_settings', 'order_quantity',
|
||||
existing_type=sa.INTEGER(),
|
||||
type_=sa.Float(),
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('user_additional_settings', 'order_quantity',
|
||||
existing_type=sa.Float(),
|
||||
type_=sa.INTEGER(),
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user