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 2229ca91 authored by vermeul's avatar vermeul
Browse files

renamed file, added semicolons, removed clutter

parent 26e8d98e
......@@ -16,34 +16,6 @@ CREATE TABLE mediawiki.yata_annotation
modified_date timestamp (6) WITH TIME ZONE,
PRIMARY KEY (id)
);
--CREATE TABLE /*_*/yata_annotation (
-- -- unique identifier for every annotation
-- id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
--
-- -- the comment itself.
-- comment blob,
--
-- -- the wiki text which is annotated
-- wiki_text blob,
--
-- -- foreign key to page.page_id
-- page_id int unsigned NOT NULL,
--
-- -- foreign key to user.user_id
-- user_id int unsigned NOT NULL,
--
-- -- start position of the annotation according to the wiki sourcecode
-- start_char int unsigned,
--
-- -- a unique bookmark for every annotation
-- -- so we later can link directly to the part
-- -- of the page an annotation was found.
-- bookmark varchar(6),
--
-- insert_date varbinary(14),
-- modified_date varbinary(14)
--
--)/*$wgDBTableOptions*/;
CREATE INDEX yata_annot_page_idx ON mediawiki.yata_annotation (page_id);
CREATE INDEX yata_annot_user_idx ON mediawiki.yata_annotation (user_id);
......@@ -61,21 +33,10 @@ CREATE TABLE mediawiki.yata_annotation_category
annotation_id INT NOT NULL,
category_id INT NOT NULL
);
--CREATE TABLE /*_*/yata_annotation_category (
--
-- -- foreign key to a page (for faster lookups)
-- page_id int unsigned NOT NULL,
--
-- -- foreign key to an annotation
-- annotation_id int unsigned NOT NULL,
--
-- -- foreign key to a category
-- category_id int unsigned NOT NULL
--)/*$wgDBTableOptions*/;
CREATE INDEX yata_ann_cat_page_idx ON mediawiki.yata_annotation_category (page_id)
CREATE INDEX yata_ann_cat_annotation_idx ON mediawiki.yata_annotation_category (annotation_id)
CREATE INDEX yata_ann_cat_category_idx ON mediawiki.yata_annotation_category (category_id)
CREATE INDEX yata_ann_cat_page_idx ON mediawiki.yata_annotation_category (page_id);
CREATE INDEX yata_ann_cat_annotation_idx ON mediawiki.yata_annotation_category (annotation_id);
CREATE INDEX yata_ann_cat_category_idx ON mediawiki.yata_annotation_category (category_id);
--
-- Tables for the YATA extension
......@@ -83,7 +44,6 @@ CREATE INDEX yata_ann_cat_category_idx ON mediawiki.yata_annotation_category (ca
-- Annotation Category table
-- Annotation category table
CREATE TABLE mediawiki.yata_category
(
id SERIAL NOT NULL,
......@@ -92,14 +52,6 @@ CREATE TABLE mediawiki.yata_category
parent_id INT,
PRIMARY KEY (id)
);
--CREATE TABLE /*_*/yata_category (
-- -- unique identifier for every annotation category
-- id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
-- name varchar(255),
-- description blob,
-- -- categories are organized as a tree
-- parent_id int unsigned
--);
CREATE INDEX yata_category_name_idx ON mediawiki.yata_category (name);
CREATE INDEX yata_category_parent_idx ON mediawiki.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