fix 3.12.0 migration script (closes: #1766202) stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Mon, 20 Jun 2011 14:49:00 +0200
branchstable
changeset 7540 074a6cec246b
parent 7538 849c04098f3f
child 7541 55b1378e9357
child 7544 628fe57ce746
fix 3.12.0 migration script (closes: #1766202)
misc/migration/3.12.0_Any.py
--- a/misc/migration/3.12.0_Any.py	Mon Jun 20 12:55:40 2011 +0200
+++ b/misc/migration/3.12.0_Any.py	Mon Jun 20 14:49:00 2011 +0200
@@ -1,2 +1,4 @@
-add_entity_type('TZDatetime')
-add_entity_type('TZTime')
+if schema['TZDatetime'].eid is None:
+    add_entity_type('TZDatetime')
+if schema['TZTime'].eid is None:
+    add_entity_type('TZTime')