refactor(products): remove obsolete interaction fields across stack
This commit is contained in:
parent
1d8a8eafb8
commit
c5ea38880c
16 changed files with 32 additions and 278 deletions
|
|
@ -0,0 +1,28 @@
|
|||
"""drop_product_interaction_columns
|
||||
|
||||
Revision ID: e4f5a6b7c8d9
|
||||
Revises: d3e4f5a6b7c8
|
||||
Create Date: 2026-03-04 00:00:00.000000
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision: str = "e4f5a6b7c8d9"
|
||||
down_revision: Union[str, None] = "d3e4f5a6b7c8"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.drop_column("products", "incompatible_with")
|
||||
op.drop_column("products", "synergizes_with")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.add_column("products", sa.Column("synergizes_with", sa.JSON(), nullable=True))
|
||||
op.add_column("products", sa.Column("incompatible_with", sa.JSON(), nullable=True))
|
||||
Loading…
Add table
Add a link
Reference in a new issue