diff -r 570522300e22 -r 3d654a7df823 misc/migration/bootstrapmigration_repository.py --- a/misc/migration/bootstrapmigration_repository.py Tue Jun 21 10:57:25 2011 +0200 +++ b/misc/migration/bootstrapmigration_repository.py Tue Jun 21 17:49:32 2011 +0200 @@ -35,10 +35,10 @@ ss.execschemarql(rql, rdef, ss.rdef2rql(rdef, CSTRMAP, groupmap=None)) commit(ask_confirm=False) -if applcubicwebversion == (3, 13, 0) and cubicwebversion >= (3, 13, 1): +if applcubicwebversion <= (3, 13, 0) and cubicwebversion >= (3, 13, 1): sql('ALTER TABLE entities ADD COLUMN asource VARCHAR(64)') - sql('INSERT INTO entities(asource) ' - 'SELECT cw_name FROM cw_CWSource, cw_source_relation ' + sql('UPDATE entities SET asource=cw_name ' + 'FROM cw_CWSource, cw_source_relation ' 'WHERE entities.eid=cw_source_relation.eid_from AND cw_source_relation.eid_to=cw_CWSource.cw_eid') if applcubicwebversion == (3, 6, 0) and cubicwebversion >= (3, 6, 0):