Commit 050b69c4 by Nicolas Joyard

Modif notice_numero => Unicode

parent 8823ccab
......@@ -18,7 +18,7 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('documents', sa.Column('notice_numero', sa.String(10), nullable=True))
op.add_column('documents', sa.Column('notice_numero', sa.Unicode(), nullable=True))
conn = op.get_bind()
conn.execute("""
CREATE OR REPLACE FUNCTION public.documents_search_vector_update()
......
......@@ -53,7 +53,7 @@ class ImportDossiersJob(BaseANJob):
'divisions': [],
'dossier': None,
'legislature': None,
'notice_numero': str(notice['numNotice']),
'notice_numero': notice['numNotice'],
'organes': [],
'soustype_code': None,
'soustype_libelle': None,
......
......@@ -246,7 +246,7 @@ class Document(db.Model):
date_publication = db.Column(db.Date)
date_publication_web = db.Column(db.Date)
notice_numero = db.Column(db.String(10))
notice_numero = db.Column(db.Unicode)
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