git-subtree-dir: fiscal git-subtree-mainline:d95165fc8fgit-subtree-split:102ba84500
22 lines
727 B
Python
22 lines
727 B
Python
"""Installation.company_contribuinte_ipi: auto-discovered (C000004.CONTRIBUINTE_IPI, same row/query as company_crt) at heartbeat, never
|
|
operator-guessed. Closes the fiscal-completion gap where CST_IPI could not be resolved without asking a human for a fact the ERP already proves.
|
|
|
|
Revision ID: 0032_contribuinte_ipi
|
|
Revises: 0031_enrichment_reevaluate
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision = "0032_contribuinte_ipi"
|
|
down_revision = "0031_enrichment_reevaluate"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.add_column("installations", sa.Column("company_contribuinte_ipi", sa.String(1), nullable=True))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("installations", "company_contribuinte_ipi")
|