mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 10:42:57 +00:00
59 lines
1.8 KiB
SQL
59 lines
1.8 KiB
SQL
-- Rollback performance indexes
|
|
|
|
-- Articles indexes
|
|
DROP INDEX IF EXISTS idx_articles_published_date;
|
|
DROP INDEX IF EXISTS idx_articles_slug;
|
|
DROP INDEX IF EXISTS idx_articles_category;
|
|
DROP INDEX IF EXISTS idx_articles_author;
|
|
DROP INDEX IF EXISTS idx_articles_featured;
|
|
DROP INDEX IF EXISTS idx_articles_search;
|
|
DROP INDEX IF EXISTS idx_articles_category_published;
|
|
DROP INDEX IF EXISTS idx_articles_author_published;
|
|
DROP INDEX IF EXISTS idx_articles_published_only;
|
|
DROP INDEX IF EXISTS idx_articles_unpublished_only;
|
|
|
|
-- Players indexes
|
|
DROP INDEX IF EXISTS idx_players_team;
|
|
DROP INDEX IF EXISTS idx_players_position;
|
|
DROP INDEX IF EXISTS idx_players_active;
|
|
DROP INDEX IF EXISTS idx_players_name;
|
|
|
|
-- Users indexes
|
|
DROP INDEX IF EXISTS idx_users_email;
|
|
DROP INDEX IF EXISTS idx_users_role;
|
|
DROP INDEX IF EXISTS idx_users_created;
|
|
|
|
-- Categories indexes
|
|
DROP INDEX IF EXISTS idx_categories_name;
|
|
|
|
-- Newsletter indexes
|
|
DROP INDEX IF EXISTS idx_newsletter_email;
|
|
DROP INDEX IF EXISTS idx_newsletter_active;
|
|
|
|
-- Contact messages indexes
|
|
DROP INDEX IF EXISTS idx_contact_messages_created;
|
|
DROP INDEX IF EXISTS idx_contact_messages_read;
|
|
|
|
-- Polls indexes
|
|
DROP INDEX IF EXISTS idx_polls_active;
|
|
DROP INDEX IF EXISTS idx_poll_votes_poll;
|
|
DROP INDEX IF EXISTS idx_poll_votes_user;
|
|
|
|
-- Match overrides indexes
|
|
DROP INDEX IF EXISTS idx_match_overrides_external;
|
|
|
|
-- Team logo overrides indexes
|
|
DROP INDEX IF EXISTS idx_team_logo_external;
|
|
|
|
-- Uploaded files indexes
|
|
DROP INDEX IF EXISTS idx_uploaded_files_user;
|
|
DROP INDEX IF EXISTS idx_uploaded_files_created;
|
|
|
|
-- Competition aliases indexes
|
|
DROP INDEX IF EXISTS idx_competition_aliases_code;
|
|
DROP INDEX IF EXISTS idx_competition_aliases_order;
|
|
|
|
-- Clothing indexes
|
|
DROP INDEX IF EXISTS idx_clothing_category;
|
|
DROP INDEX IF EXISTS idx_clothing_available;
|