Commit 5acbc123 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Adapt the default.py file to the current database model.

parent 7f4a5f9c
......@@ -4,31 +4,28 @@
Insert defaults values in the tables
"""
if not db(db.agencies.id).count():
db.agencies.insert(id=undef_id, agency=undef, definition=undef)
if not db(db.events.id).count():
db.events.insert(id=undef_id, event=undef, category=undef, definition=undef)
if not db(db.people_categories.id).count():
db.people_categories.insert(id=undef_id, code=undef, category=undef, definition=undef)
if not db(db.fundings.id).count():
db.fundings.insert(id=undef_id, agency=undef, definition=undef)
if not db(db.events.id).count():
db.events.insert(id=undef_id, event=undef, definition=undef)
if not db(db.organizations.id).count():
db.organizations.insert(id=undef_id, organization=undef)
if not db(db.organization_levels.id).count():
db.organization_levels.insert(id=undef_id, level=undef, definition=undef)
if not db(db.lines.id).count():
db.lines.insert(id=undef_id, line=undef, definition=undef)
if not db(db.organizations.id).count():
db.organizations.insert(id=undef_id, organization=undef, level=undef)
if not db(db.people.id).count():
db.people.insert(id=undef_id, first_name=undef,
last_name=undef,
initials=undef)
if not db(db.people_categories.id).count():
db.people_categories.insert(id=undef_id, code=undef, category=undef, definition=undef)
if not db(db.projects.id).count():
db.projects.insert(id=undef_id, project=undef, agencies=undef)
db.projects.insert(id=undef_id, project=undef)
if not db(db.teams.id).count():
db.teams.insert(id=undef_id, team=undef, domain=undef)
\ No newline at end of file
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 to comment