Commit 14fd91e7 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1626289: Wrap the CONTRAINT name in bracelets"

parents 373297ff aa86c509
......@@ -446,7 +446,7 @@ function xmldb_artefact_file_upgrade($oldversion=0) {
log_debug('Drop the old primary key constraint and add new id column from/to the table artefact_file_mime_types');
if (is_postgres()) {
execute_sql('ALTER TABLE {artefact_file_mime_types}
DROP CONSTRAINT IF EXISTS artefilemimetype_mim_pk,
DROP CONSTRAINT IF EXISTS {artefilemimetype_mim_pk},
ADD COLUMN id SERIAL PRIMARY KEY');
}
else if (is_mysql()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment