Logo
Explore Help
Sign In
mish/evo-sync
1
0
Fork 0
You've already forked evo-sync
Code Issues 3 Pull Requests Actions Packages Projects 1 Releases 5 Wiki Activity
Files
52825f70dea112ecc552dab81b8d12d6832351a6
evo-sync/web/migrations/versions/0008_sync_config_price_postfix.py

17 lines
385 B
Python
Raw Normal View History

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>
2026-05-12 23:08:45 +03:00
"""Add price_multiplier to sync_configs."""
feat: /sync settings page with price multiplier and description postfix Adds price_multiplier and description_postfix to SyncConfig. The sync page at /sync lets users configure them. vk_sync reads these per-user settings and applies the multiplier to price and appends the postfix as "(postfix)" to the VK product description. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 23:04:23 +03:00
revision = "0008"
down_revision = "0007"
branch_labels = None
depends_on = None
import sqlalchemy as sa
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"))
def downgrade():
op.drop_column("sync_configs", "price_multiplier")
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 677ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API