Init Project Flexly Estimator

This commit is contained in:
Alexey Dudin
2026-11-03 09:37:44 +03:00
commit 447464c16c
160 changed files with 12779 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""VAT rate per estimate version
Revision ID: 0003
Revises: 0002
Create Date: 2026-10-31
"""
import sqlalchemy as sa
from alembic import op
revision = "0003"
down_revision = "0002"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("estimate_versions") as batch:
batch.add_column(sa.Column("vat_rate", sa.Float, nullable=False, server_default="0"))
def downgrade() -> None:
with op.batch_alter_table("estimate_versions") as batch:
batch.drop_column("vat_rate")