summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-02-20 13:05:14 +0300
committerAndrew Dolgov <[email protected]>2015-02-20 13:05:14 +0300
commit5cbc1c7469fd35135fb17cfa6e6ed1b678bc0b21 (patch)
treeb1e359d977d528224e5f41a3858cb68227444da2 /schema
parent89e31b9d4e721da222d3fbb5e66b0c6a18961ac9 (diff)
mysql: remove some more unneeded manual index()es from table create scripts
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql6
1 files changed, 0 insertions, 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);