| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,35 @@ |
| 1 |
+alter table fanfiction_authorinfo add primary key(uid,field); |
|
| 2 |
+alter table fanfiction_blocks drop index block_name; |
|
| 3 |
+alter table fanfiction_blocks add unique index block_name (block_name); |
|
| 4 |
+alter table fanfiction_categories drop index category; |
|
| 5 |
+alter table fanfiction_categories drop index parentcatid; |
|
| 6 |
+create index byparent on fanfiction_categories (parentcatid,displayorder); |
|
| 7 |
+create index forstoryblock on fanfiction_chapters (sid,validated); |
|
| 8 |
+create index byname on fanfiction_classes (class_type,class_name,class_id); |
|
| 9 |
+alter table fanfiction_classtypes drop index classtype_title; |
|
| 10 |
+create unique index classtype_name on fanfiction_classtypes(classtype_name); |
|
| 11 |
+create index code_type on fanfiction_codeblocks(code_type); |
|
| 12 |
+alter table fanfiction_comments drop index nid; |
|
| 13 |
+alter table fanfiction_comments add index commentlist (nid,time); |
|
| 14 |
+alter table fanfiction_favorites drop index uid; |
|
| 15 |
+create unique index byitem on fanfiction_favorites (item,type,uid); |
|
| 16 |
+create unique index byuid on fanfiction_favorites (uid,type,item); |
|
| 17 |
+alter table fanfiction_inseries drop index seriesid; |
|
| 18 |
+alter table fanfiction_inseries drop index inorder; |
|
| 19 |
+alter table fanfiction_inseries add index (seriesid,inorder); |
|
| 20 |
+alter table fanfiction_inseries drop index sid; |
|
| 21 |
+alter table fanfiction_inseries add primary key (sid,seriesid); |
|
| 22 |
+create index message_name on fanfiction_messages (message_name); |
|
| 23 |
+alter table fanfiction_pagelinks drop index link_text; |
|
| 24 |
+alter table fanfiction_panels drop index panel_hidden; |
|
| 25 |
+alter table fanfiction_panels drop index panel_type; |
|
| 26 |
+alter table fanfiction_panels add index panel_type (panel_type,panel_name); |
|
| 27 |
+create index avgrating on fanfiction_reviews(type,item,rating); |
|
| 28 |
+alter table fanfiction_reviews drop index sid; |
|
| 29 |
+create index bychapter on fanfiction_reviews (chapid,rating); |
|
| 30 |
+alter table fanfiction_reviews add index byuid (uid,item,type); |
|
| 31 |
+alter table fanfiction_series drop index owner; |
|
| 32 |
+create index owner on fanfiction_series (uid,title); |
|
| 33 |
+alter table fanfiction_stories drop index validated; |
|
| 34 |
+create index validateduid on fanfiction_stories (validated,uid); |
|
| 35 |
+create index recent on fanfiction_stories (updated,validated); |
|
| 0 | 36 |
\ No newline at end of file |