To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit ee8204f0 authored by vermeul's avatar vermeul
Browse files

DROP INDEX IF EXISTS to prevent update errors

parent 1fc7fb84
...@@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_annotation ( ...@@ -32,8 +32,8 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_annotation (
)/*$wgDBTableOptions*/; )/*$wgDBTableOptions*/;
DROP INDEX /*i*/yata_annot_page_idx ON /*_*/yata_annotation; DROP INDEX IF EXISTS /*i*/yata_annot_page_idx ON /*_*/yata_annotation;
DROP INDEX /*i*/yata_annot_user_idx ON /*_*/yata_annotation; DROP INDEX IF EXISTS /*i*/yata_annot_user_idx ON /*_*/yata_annotation;
CREATE INDEX /*i*/yata_annot_page_idx ON /*_*/yata_annotation (page_id); CREATE INDEX /*i*/yata_annot_page_idx ON /*_*/yata_annotation (page_id);
CREATE INDEX /*i*/yata_annot_user_idx ON /*_*/yata_annotation (user_id); CREATE INDEX /*i*/yata_annot_user_idx ON /*_*/yata_annotation (user_id);
...@@ -54,8 +54,8 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_page_annotation ( ...@@ -54,8 +54,8 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_page_annotation (
)/*$wgDBTableOptions*/; )/*$wgDBTableOptions*/;
DROP INDEX /*i*/yata_page_annot_name_idx ON /*_*/yata_page_annotation; DROP INDEX IF EXISTS /*i*/yata_page_annot_name_idx ON /*_*/yata_page_annotation;
DROP INDEX /*i*/yata_page_annot_page_idx ON /*_*/yata_page_annotation; DROP INDEX IF EXISTS /*i*/yata_page_annot_page_idx ON /*_*/yata_page_annotation;
CREATE INDEX /*i*/yata_page_annot_name_idx ON /*_*/yata_page_annotation (name); CREATE INDEX /*i*/yata_page_annot_name_idx ON /*_*/yata_page_annotation (name);
CREATE INDEX /*i*/yata_page_annot_page_idx ON /*_*/yata_page_annotation (page_id); CREATE INDEX /*i*/yata_page_annot_page_idx ON /*_*/yata_page_annotation (page_id);
...@@ -78,9 +78,9 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_annotation_category ( ...@@ -78,9 +78,9 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_annotation_category (
category_id int unsigned NOT NULL category_id int unsigned NOT NULL
)/*$wgDBTableOptions*/; )/*$wgDBTableOptions*/;
DROP INDEX /*i*/yata_ann_cat_page_idx ON /*_*/yata_annotation_category; DROP INDEX IF EXISTS /*i*/yata_ann_cat_page_idx ON /*_*/yata_annotation_category;
DROP INDEX /*i*/yata_ann_cat_annotation_idx ON /*_*/yata_annotation_category; DROP INDEX IF EXISTS /*i*/yata_ann_cat_annotation_idx ON /*_*/yata_annotation_category;
DROP INDEX /*i*/yata_ann_cat_category_idx ON /*_*/yata_annotation_category; DROP INDEX IF EXISTS /*i*/yata_ann_cat_category_idx ON /*_*/yata_annotation_category;
CREATE INDEX /*i*/yata_ann_cat_page_idx ON /*_*/yata_annotation_category (page_id); CREATE INDEX /*i*/yata_ann_cat_page_idx ON /*_*/yata_annotation_category (page_id);
CREATE INDEX /*i*/yata_ann_cat_annotation_idx ON /*_*/yata_annotation_category (annotation_id); CREATE INDEX /*i*/yata_ann_cat_annotation_idx ON /*_*/yata_annotation_category (annotation_id);
...@@ -103,9 +103,9 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_category ( ...@@ -103,9 +103,9 @@ CREATE TABLE IF NOT EXISTS /*_*/yata_category (
parent_id int unsigned parent_id int unsigned
); );
DROP INDEX /*i*/yata_category_name ON /*_*/yata_category; DROP INDEX IF EXISTS /*i*/yata_category_name ON /*_*/yata_category;
DROP INDEX /*i*/yata_category_parent ON /*_*/yata_category; DROP INDEX IF EXISTS /*i*/yata_category_parent ON /*_*/yata_category;
DROP INDEX /*i*/yata_category_hashtag_unq ON /*_*/yata_category; DROP INDEX IF EXISTS /*i*/yata_category_hashtag_unq ON /*_*/yata_category;
CREATE INDEX /*i*/yata_category_name ON /*_*/yata_category (name); CREATE INDEX /*i*/yata_category_name ON /*_*/yata_category (name);
CREATE INDEX /*i*/yata_category_parent ON /*_*/yata_category (parent_id); CREATE INDEX /*i*/yata_category_parent ON /*_*/yata_category (parent_id);
......
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