Commit 4d7dded5 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Change the type of the synonyms field to list:string.

parent b220456c
......@@ -332,7 +332,7 @@
'List of collections separated by comma: LHCb Papers, LHCb Talks': 'Liste des collections separé par une virgule : LHCb Papers, LHCb Talks',
'List of directors separated by comma: J. Doe, P.-Y. Smith': 'Noms des directeurs de thèse separé par une virgule: J. Doe, P.-Y. Smith',
'List of sections separated by a comma: Articles, Proceedings.': 'Liste de sections separé par une virgule: Articles, Proceedings.',
'List of synonyms separated by comma.': 'Liste de synonymes séparés par une virgule.',
'List of synonyms, one entry per row.': 'Liste de synonymes, une valeur par ligne.',
'List of university separated by comma': 'Liste des universités séparé par une virgule',
'List shorted by AERES category, by project and by year': 'Liste triée par catégorie AERES par projet et par année',
'List shorted by usual category, by team and by year': 'Liste triée par catégorie usuelle par équipe et par année',
......
......@@ -10,11 +10,11 @@ T("Collaboration(s) signing the publication: "
"CTA Consortium.")
tp_synonyms = \
T("List of synonyms separated by comma.")
T("List of synonyms, one entry per row.")
db.define_table("collaborations",
Field("collaboration", "string", length=255, comment=tp_collaboration, notnull=True, unique=True),
Field("synonyms", "text", comment=tp_synonyms),
Field("synonyms", "list:string", comment=tp_synonyms),
migrate="collaborations.table")
db.collaborations._before_delete.append(INHIBIT_CASCADE_DELETE)
......
......@@ -4,7 +4,7 @@
"""
db.define_table("countries",
Field("country", "string", length=255, notnull=True, unique=True),
Field("synonyms", "text", comment=tp_synonyms),
Field("synonyms", "list:string", comment=tp_synonyms),
migrate="countries.table")
db.countries._before_delete.append(INHIBIT_CASCADE_DELETE)
......
......@@ -5,7 +5,7 @@
db.define_table("publishers",
Field("publisher", "string", length=255, default="", label="Review"),
Field("abbreviation", "string", length=255, notnull=True, unique=True),
Field("synonyms", "text", comment=tp_synonyms),
Field("synonyms", "list:string", comment=tp_synonyms),
migrate="publishers.table")
db.publishers._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