Fix schema migration that creates index for submodule subscriptions
Commit b0d373c272b814ffc4b43552b1d6a58fb8ec875a added a schema
migration that creates an index for submodule subscriptions.
This migration fails if the index already exists. This can be if the
site was newly created after the submodule subscription feature
(d15704079c2f820995ee70e7403dfa7ebcb3d791) was introduced or if the
missing index was created manually.
This change fixes the migration by catching any SQLException when
trying to create the index and asking the user whether this exception
should be ignored. An automatic decision is not possible since specific
SQL error codes for this case are not available for all supported
databases.
Change-Id: I7ecb3f0ed050f22753d268dcac01ca3bdb2d84b3
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
4 files changed