Browse Source

Solved a bug in the mysql MH (triggers where generated for common fields)

Yann Weber 9 years ago
parent
commit
6df43be9b9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      EditorialModel/migrationhandler/mysql.py

+ 1
- 1
EditorialModel/migrationhandler/mysql.py View File

@@ -237,7 +237,7 @@ class MysqlMigrationHandler(EditorialModel.migrationhandler.dummy.DummyMigration
237 237
     def _class2cols(self, emclass):
238 238
         if not isinstance(emclass, EditorialModel.classes.EmClass):
239 239
             raise ValueError("The given uid is not an EmClass uid")
240
-        return { f.name: f.fieldtype_instance() for f in emclass.fields() }
240
+        return { f.name: f.fieldtype_instance() for f in emclass.fields() if f.name not in EditorialModel.classtypes.common_fields.keys() }
241 241
 
242 242
     ## @brief Create object and relations tables
243 243
     # @param drop_if_exist bool : If true drop tables if exists

Loading…
Cancel
Save