Browse Source

MySQL migration handler enhancement

Add linked type attribute to LeClass childs classes
Yann Weber 9 years ago
parent
commit
116bc2765d
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      EditorialModel/migrationhandler/mysql.py

+ 6
- 3
EditorialModel/migrationhandler/mysql.py View File

@@ -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

Loading…
Cancel
Save