Commit d74d6fa9 by David Guillot

[Model] Document : ajout de la colonne numero

parent 21dcb503
......@@ -5,4 +5,5 @@
data/*.json
data/*.zip
reference
/migrations/
/migrations/*
!/migrations/versions/
"""empty message
Revision ID: 55c1e64eaf9f
Revises:
Create Date: 2017-03-21 11:38:18.839895
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '55c1e64eaf9f'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('documents', sa.Column('notice_numero', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('documents', 'notice_numero')
# ### end Alembic commands ###
......@@ -246,6 +246,7 @@ class Document(db.Model):
date_publication = db.Column(db.Date)
date_publication_web = db.Column(db.Date)
notice_numero = db.Column(db.Integer)
titre = db.Column(db.Unicode)
denomination_structurelle = db.Column(db.Unicode)
type_code = db.Column(db.Unicode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment