feat(db): 删除产品表actionfree_gift
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
"""del product action free_gift
|
||||
|
||||
Revision ID: 4a03470b2c09
|
||||
Revises: 4a97e1258bbb
|
||||
Create Date: 2025-05-09 19:35:50.208159
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import mysql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '4a03470b2c09'
|
||||
down_revision: Union[str, None] = '4a97e1258bbb'
|
||||
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.alter_column('system_products', 'action',
|
||||
existing_type=mysql.ENUM('VIP_RENEWAL', 'RECHARGE_POINTS', 'FREE_GIFT'),
|
||||
comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points',
|
||||
existing_comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points 赠送产品:free_gift',
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('system_products', 'action',
|
||||
existing_type=mysql.ENUM('VIP_RENEWAL', 'RECHARGE_POINTS', 'FREE_GIFT'),
|
||||
comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points 赠送产品:free_gift',
|
||||
existing_comment='付款后的动作,会员续期:vip_renewal 积分:recharge_points',
|
||||
existing_nullable=False)
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user