refactor: derive VK description postfix from measure_name, drop global postfix setting
Each product's description is now built as "Name (цена за M.)" using its own measure_name. The global description_postfix setting is removed — it couldn't handle per-product units. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Add price_multiplier and description_postfix to sync_configs."""
|
||||
"""Add price_multiplier to sync_configs."""
|
||||
revision = "0008"
|
||||
down_revision = "0007"
|
||||
branch_labels = None
|
||||
@@ -10,9 +10,7 @@ from alembic import op
|
||||
|
||||
def upgrade():
|
||||
op.add_column("sync_configs", sa.Column("price_multiplier", sa.Numeric(10, 4), nullable=False, server_default="1.0"))
|
||||
op.add_column("sync_configs", sa.Column("description_postfix", sa.String(255), nullable=True))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("sync_configs", "description_postfix")
|
||||
op.drop_column("sync_configs", "price_multiplier")
|
||||
|
||||
Reference in New Issue
Block a user