# HG changeset patch # User Sylvain Thénault # Date 1312455055 -7200 # Node ID 8767d03dab17e189273c4433a3e8ee9c7cf3ac23 # Parent 71adfd6bab38d44ad68b2dc5458ee2fd8ac45d0a [3.13 migration] closes #1896724: some db backend (eg sqlserver) doesn't support ADD COLUMN diff -r 71adfd6bab38 -r 8767d03dab17 misc/migration/bootstrapmigration_repository.py --- a/misc/migration/bootstrapmigration_repository.py Thu Aug 04 12:50:49 2011 +0200 +++ b/misc/migration/bootstrapmigration_repository.py Thu Aug 04 12:50:55 2011 +0200 @@ -36,7 +36,7 @@ commit(ask_confirm=False) if applcubicwebversion <= (3, 13, 0) and cubicwebversion >= (3, 13, 1): - sql('ALTER TABLE entities ADD COLUMN asource VARCHAR(64)') + sql('ALTER TABLE entities ADD asource VARCHAR(64)') 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')