Skip to content

Commit

Permalink
fix(occtax) switch default value between sexe and object denombrement
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi authored and jacquesfize committed Mar 8, 2024
1 parent ec1f160 commit 4afa6e4
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""invert count default
Revision ID: 43ecf0836b4a
Revises: e170d1902137
Create Date: 2024-01-23 09:36:40.189931
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "43ecf0836b4a"
down_revision = "e170d1902137"
branch_labels = None
depends_on = None


def upgrade():
op.execute(
"""
ALTER TABLE pr_occtax.cor_counting_occtax
ALTER COLUMN id_nomenclature_sex SET DEFAULT pr_occtax.get_default_nomenclature_value('SEXE');
ALTER TABLE pr_occtax.cor_counting_occtax
ALTER COLUMN id_nomenclature_obj_count SET DEFAULT pr_occtax.get_default_nomenclature_value('OBJ_DENBR');
"""
)


def downgrade():
pass

0 comments on commit 4afa6e4

Please sign in to comment.