Skip to content

Commit

Permalink
Merge pull request #726 from rufener/formulaire_emoluments
Browse files Browse the repository at this point in the history
Formulaire emoluments
  • Loading branch information
rufener authored Mar 20, 2023
2 parents c65b74c + b2727d8 commit a81d482
Show file tree
Hide file tree
Showing 6 changed files with 640 additions and 362 deletions.
38 changes: 38 additions & 0 deletions back/infolica/alembic/versions/20230313_4f5057ef6dd2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""update tableau_emoluments
Revision ID: 4f5057ef6dd2
Revises: 38b66991e634
Create Date: 2023-03-13 07:46:34.782070
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4f5057ef6dd2'
down_revision = '38b66991e634'
branch_labels = None
depends_on = None

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('tableau_emoluments', 'priorite')
op.add_column('tableau_emoluments', sa.Column('ordre', sa.Integer(), nullable=True))
op.add_column('tableau_emoluments', sa.Column('id_html', sa.Text(), nullable=True))
op.add_column('tableau_emoluments', sa.Column('batiment', sa.Boolean(), nullable=True))
op.add_column('tableau_emoluments', sa.Column('bien_fonds', sa.Boolean(), nullable=True))
op.add_column('tableau_emoluments', sa.Column('code', sa.String(length=8), nullable=True))
op.add_column('tableau_emoluments', sa.Column('priorite', sa.Boolean(), nullable=True))
# ### end Alembic commands ###

def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('tableau_emoluments', 'priorite')
op.drop_column('tableau_emoluments', 'code')
op.drop_column('tableau_emoluments', 'bien_fonds')
op.drop_column('tableau_emoluments', 'batiment')
op.drop_column('tableau_emoluments', 'id_html')
op.drop_column('tableau_emoluments', 'ordre')
op.add_column('tableau_emoluments', sa.Column('priorite', sa.Integer(), nullable=True))
# ### end Alembic commands ###
7 changes: 6 additions & 1 deletion back/infolica/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,12 @@ class TableauEmoluments(Base):
date_entree = Column(Date)
date_sortie = Column(Date)
remplace = Column(BigInteger)
priorite = Column(Integer)
priorite = Column(Boolean)
ordre = Column(Integer)
id_html = Column(Text)
batiment = Column(Boolean)
bien_fonds = Column(Boolean)
code = Column(String(8))


class EmolumentAffaire(Base):
Expand Down
Loading

0 comments on commit a81d482

Please sign in to comment.