migrate card cube in bootstrap migration tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 28 Apr 2009 14:37:19 +0200
branchtls-sprint
changeset 1501 c80ca83a382f
parent 1500 099e479e34bf
child 1502 e25be3c82947
migrate card cube in bootstrap migration
misc/migration/3.2.0_Any.py
misc/migration/bootstrapmigration_repository.py
--- a/misc/migration/3.2.0_Any.py	Tue Apr 28 14:24:16 2009 +0200
+++ b/misc/migration/3.2.0_Any.py	Tue Apr 28 14:37:19 2009 +0200
@@ -2,4 +2,3 @@
     'X pkey "ui.main-template", X value "main"')
 checkpoint()
 
-add_cube('card', update_database=False)
--- a/misc/migration/bootstrapmigration_repository.py	Tue Apr 28 14:24:16 2009 +0200
+++ b/misc/migration/bootstrapmigration_repository.py	Tue Apr 28 14:37:19 2009 +0200
@@ -7,6 +7,9 @@
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 
+if applcubicwebversion < (3, 2, 0) and cubicwebversion >= (3, 2, 0):
+   add_cube('card', update_database=False)
+
 if applcubicwebversion < (2, 47, 0) and cubicwebversion >= (2, 47, 0):
     from cubicweb.server import schemaserial
     schemaserial.HAS_FULLTEXT_CONTAINER = False
@@ -15,7 +18,7 @@
     schemaserial.HAS_FULLTEXT_CONTAINER = True
 
 
- 
+
 if applcubicwebversion < (2, 50, 0) and cubicwebversion >= (2, 50, 0):
     session.set_shared_data('do-not-insert-is_instance_of', True)
     add_relation_type('is_instance_of')
@@ -40,4 +43,4 @@
     sql('CREATE INDEX deleted_entities_dtime_idx ON deleted_entities(dtime)')
     sql('CREATE INDEX deleted_entities_extid_idx ON deleted_entities(extid)')
     checkpoint()
-   
+