Kaynağa Gözat

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

Yann Weber 9 yıl önce
ebeveyn
işleme
6df43be9b9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      EditorialModel/migrationhandler/mysql.py

+ 1
- 1
EditorialModel/migrationhandler/mysql.py Dosyayı Görüntüle

@@ -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…
İptal
Kaydet