# HG changeset patch
# User sylvain.thenault@logilab.fr
# Date 1240922239 -7200
# Node ID c80ca83a382f22db0d529e66c11fcf896c597b92
# Parent  099e479e34bfa652aaa3d57d100ecdeba98d099f
migrate card cube in bootstrap migration

diff -r 099e479e34bf -r c80ca83a382f misc/migration/3.2.0_Any.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)
diff -r 099e479e34bf -r c80ca83a382f misc/migration/bootstrapmigration_repository.py
--- 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()
-   
+