misc/migration/bootstrapmigration_repository.py
branchstable
changeset 2275 bc0bed0616a3
parent 1977 606923dff11b
child 2462 9e670072884d
equal deleted inserted replaced
2274:885873dc4361 2275:bc0bed0616a3
     5 :organization: Logilab
     5 :organization: Logilab
     6 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     6 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     7 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     7 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     9 """
     9 """
       
    10 
       
    11 applcubicwebversion, cubicwebversion = versions_map['cubicweb']
    10 
    12 
    11 if applcubicwebversion < (3, 2, 2) and cubicwebversion >= (3, 2, 1):
    13 if applcubicwebversion < (3, 2, 2) and cubicwebversion >= (3, 2, 1):
    12    from base64 import b64encode
    14    from base64 import b64encode
    13    for table in ('entities', 'deleted_entities'):
    15    for table in ('entities', 'deleted_entities'):
    14       for eid, extid in sql('SELECT eid, extid FROM %s WHERE extid is NOT NULL'
    16       for eid, extid in sql('SELECT eid, extid FROM %s WHERE extid is NOT NULL'