Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
parlapi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Guillot
parlapi
Commits
d74d6fa9
Commit
d74d6fa9
authored
Mar 21, 2017
by
David Guillot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Model] Document : ajout de la colonne numero
parent
21dcb503
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
.gitignore
.gitignore
+2
-1
migrations/versions/55c1e64eaf9f_.py
migrations/versions/55c1e64eaf9f_.py
+28
-0
parlapi/models.py
parlapi/models.py
+1
-0
No files found.
.gitignore
View file @
d74d6fa9
...
...
@@ -5,4 +5,5 @@
data/*.json
data/*.zip
reference
/migrations/
/migrations/*
!/migrations/versions/
migrations/versions/55c1e64eaf9f_.py
0 → 100644
View file @
d74d6fa9
"""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 ###
parlapi/models.py
View file @
d74d6fa9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment