cubicweb/misc/migration/3.22.0_Any.py
changeset 11129 97095348b3ee
parent 11101 66fb68c25f83
parent 11057 0b59724cb3f2
--- a/cubicweb/misc/migration/3.22.0_Any.py	Thu Feb 11 21:59:49 2016 +0100
+++ b/cubicweb/misc/migration/3.22.0_Any.py	Wed Feb 17 13:45:34 2016 +0100
@@ -12,7 +12,7 @@
     sql("SET TIME ZONE '%s'" % timezone)
 
 for entity in schema.entities():
-    if entity.final:
+    if entity.final or entity.type not in fsschema:
         continue
     change_attribute_type(entity.type, 'creation_date', 'TZDatetime', ask_confirm=False)
     change_attribute_type(entity.type, 'modification_date', 'TZDatetime', ask_confirm=False)