Skip to content

Commit

Permalink
Merge pull request #760 from rufener/preavis
Browse files Browse the repository at this point in the history
Preavis + contrôle mutation
  • Loading branch information
rufener authored May 13, 2024
2 parents e31152c + 8a069ce commit c001438
Show file tree
Hide file tree
Showing 9 changed files with 287 additions and 245 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ env.local
env.dev
env.prepub
env.prod
env.test
1 change: 1 addition & 0 deletions back/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ venv.bak/
/production.ini
/prepub.ini
/local.ini
/test.ini

# alembic versions
infolica/alembic/versions/old
Expand Down
29 changes: 29 additions & 0 deletions back/infolica/alembic/versions/20240502_86046f932b74.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""add item into ctrlMutation
Revision ID: 86046f932b74
Revises: 7f61c1192ef6
Create Date: 2024-05-02 15:51:01.573804
"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "86046f932b74"
down_revision = "7f61c1192ef6"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("controle_mutation", sa.Column("cs_9", sa.Boolean(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("controle_mutation", "cs_9")
# ### end Alembic commands ###
30 changes: 30 additions & 0 deletions back/infolica/alembic/versions/20240503_6620a34e9d5c.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""manage service urbanisme
Revision ID: 6620a34e9d5c
Revises: 86046f932b74
Create Date: 2024-05-03 14:20:54.319033
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '6620a34e9d5c'
down_revision = '86046f932b74'
branch_labels = None
depends_on = None

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("cadastre", "service_at_id", new_column_name="service_urbanisme_id")
op.add_column('controle_mutation', sa.Column('od_6', sa.Boolean(), nullable=True))
op.add_column('service', sa.Column('service_principal', sa.Boolean(), nullable=True))
# ### end Alembic commands ###

def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column("cadastre", "service_urbanisme_id", new_column_name="service_at_id")
op.drop_column('controle_mutation', 'od_6')
op.drop_column('service', 'service_principal')
# ### end Alembic commands ###
Loading

0 comments on commit c001438

Please sign in to comment.