Commit 8a218f8b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Migrate to web2py 2.9.5 (define the length for all string field for

backward compatibility).
parent aeb72ea0
# coding: utf8
# -*- coding: utf-8 -*-
{
'%s between %s and %s': '%s du %s au %s',
'%s in %s': '%s en %s',
......@@ -65,6 +65,8 @@
'end': 'fin',
'End Date': 'Date de fin',
'enter a number between %(min)g and %(max)g': 'enter a number between %(min)g and %(max)g',
'Enter a number between %(min)g and %(max)g': 'Enter a number between %(min)g and %(max)g',
'Enter an integer between %(min)g and %(max)g': 'Enter an integer between %(min)g and %(max)g',
'enter an integer between %(min)g and %(max)g': 'enter an integer between %(min)g and %(max)g',
'enter date as %(format)s': 'enter date as %(format)s',
'Event': 'Evènement',
......@@ -209,6 +211,7 @@
'Tables': 'Tables',
'Team': 'Équipe',
'teams': 'équipes',
'This email already has an account': 'This email already has an account',
'Time': 'Temps',
'Timestamp': 'Timestamp',
'Title': 'Titre',
......
......@@ -3,8 +3,8 @@
"""
db.define_table("events",
Field("event", "string", notnull=True, unique=True),
Field("category", "string", notnull=True),
Field("event", "string", length=255, notnull=True, unique=True),
Field("category", "string", length=255, notnull=True),
Field("definition", "text"),
migrate="events.table")
......
......@@ -3,7 +3,7 @@
"""
db.define_table("fundings",
Field("agency", "string", notnull=True, unique=True),
Field("agency", "string", length=255, notnull=True, unique=True),
Field("definition", "text"),
migrate="fundings.table")
......
......@@ -15,11 +15,11 @@ db.define_table("history",
Field("percentage", "integer", default=None, label='Perc.'),
Field("trainee_title", "text", label=T('Title')),
Field("trainee_university", "text", label=T('University')),
Field("trainee_category", "string", default=undef, label=T("Domain")),
Field("trainee_category", "string", length=255, default=undef, label=T("Domain")),
Field("id_organizations", "reference organizations", default=undef_id, label='Organization'),
Field("id_organization_levels", "reference organization_levels", default=undef_id, label='Level'),
Field("responsibility", "text"),
Field("hardware_model", "string", label=T("Model")),
Field("hardware_model", "string", length=255, label=T("Model")),
Field("hardware_cost", "double", label=T("Cost")),
Field("note", "text"),
migrate="history.table")
......
......@@ -3,7 +3,7 @@
"""
db.define_table("organization_levels",
Field("level", "string", notnull=True, unique=True),
Field("level", "string", length=255, notnull=True, unique=True),
Field("definition", "text"),
migrate="organization_levels.table")
......
......@@ -3,7 +3,7 @@
"""
db.define_table("organizations",
Field("organization", "string", notnull=True, unique=True),
Field("organization", "string", length=255, notnull=True, unique=True),
Field("definition", "text"),
migrate="organizations.table")
......
......@@ -3,9 +3,9 @@
"""
db.define_table("people",
Field("first_name", "string", notnull=True),
Field("last_name", "string", notnull=True),
Field("initials", "string", notnull=True),
Field("first_name", "string", length=255, notnull=True),
Field("last_name", "string", length=255, notnull=True),
Field("initials", "string", length=255, notnull=True),
Field("birth_date", "date"),
Field("note", "text"),
migrate="people.table")
......
......@@ -3,8 +3,8 @@
"""
db.define_table("people_categories",
Field("code", "string", notnull=True, unique=True, label=T("Quality")),
Field("category", "string", notnull=True),
Field("code", "string", length=255, notnull=True, unique=True, label=T("Quality")),
Field("category", "string", length=255, notnull=True),
Field("definition", "text"),
migrate="people_categories.table")
......
......@@ -3,7 +3,7 @@
"""
db.define_table("projects",
Field("project", "string", notnull=True, unique=True),
Field("project", "string", length=255, notnull=True, unique=True),
migrate="projects.table")
db.projects._before_delete.append(INHIBIT_CASCADE_DELETE)
......@@ -3,8 +3,8 @@
"""
db.define_table("teams",
Field("team", "string", notnull=True, unique=True),
Field("domain", "string"),
Field("team", "string", length=255, notnull=True, unique=True),
Field("domain", "string", length=255),
migrate="teams.table")
db.teams._before_delete.append(INHIBIT_CASCADE_DELETE)
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