From 5cbc1c7469fd35135fb17cfa6e6ed1b678bc0b21 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Feb 2015 13:05:14 +0300 Subject: [PATCH] mysql: remove some more unneeded manual index()es from table create scripts --- schema/ttrss_schema_mysql.sql | 6 ------ 1 file changed, 6 deletions(-) diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 89a2730c7..540f17251 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -64,9 +64,7 @@ create table ttrss_feed_categories(id integer not null primary key auto_incremen order_id integer not null default 0, parent_cat integer, view_settings varchar(250) not null default '', - index(parent_cat), foreign key (parent_cat) references ttrss_feed_categories(id) ON DELETE SET NULL, - index(owner_uid), foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=UTF8; create table ttrss_archived_feeds (id integer not null primary key, @@ -74,7 +72,6 @@ create table ttrss_archived_feeds (id integer not null primary key, title varchar(200) not null, feed_url text not null, site_url varchar(250) not null default '', - index(owner_uid), foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=UTF8; create table ttrss_counters_cache ( @@ -244,7 +241,6 @@ create table ttrss_filters2(id integer primary key auto_increment, inverse bool not null default false, title varchar(250) not null default '', order_id integer not null default 0, - index(owner_uid), foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=UTF8; create table ttrss_filters2_rules(id integer primary key auto_increment, @@ -322,9 +318,7 @@ create table ttrss_prefs (pref_name varchar(250) not null primary key, section_id integer not null default 1, access_level integer not null default 0, def_value text not null, - index(type_id), foreign key (type_id) references ttrss_prefs_types(id), - index(section_id), foreign key (section_id) references ttrss_prefs_sections(id)) ENGINE=InnoDB DEFAULT CHARSET=UTF8; insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('PURGE_OLD_DAYS', 3, '60', 1);