|
@@ -25,6 +25,9 @@ import EditorialModel
|
25
|
25
|
# - EmField rename
|
26
|
26
|
# - rel2type field rename
|
27
|
27
|
# - rel2type attribute rename
|
|
28
|
+# - EmFieldType changes
|
|
29
|
+#
|
|
30
|
+# @todo Unified datasources and migration handlers via utils functions
|
28
|
31
|
#
|
29
|
32
|
|
30
|
33
|
## @brief Modify a MySQL database given editorial model changes
|
|
@@ -506,9 +509,9 @@ FOR EACH ROW SET {col_val_list};""".format(
|
506
|
509
|
return {
|
507
|
510
|
'id_sup': from_name('integer')(),
|
508
|
511
|
'id_sub': from_name('integer')(),
|
509
|
|
- 'rank': from_name('integer')(),
|
510
|
|
- 'depth': from_name('integer')(),
|
511
|
|
- 'nature': from_name('char')(max_lenght=10),
|
|
512
|
+ 'rank': from_name('integer')(nullable=True),
|
|
513
|
+ 'depth': from_name('integer')(nullable=True),
|
|
514
|
+ 'nature': from_name('char')(max_lenght=10, nullable=True),
|
512
|
515
|
}
|
513
|
516
|
|
514
|
517
|
## @brief Given a common field name return an EmFieldType instance
|