Skip to content

Commit 8e44cbe

Browse files
committed
Adjusted schedule for SQL keys update
1 parent 1116526 commit 8e44cbe

6 files changed

+16
-16
lines changed

DDL/00-recommended_table_order.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bic__rstr ffxiv__orderby pma__tracking pma__relation pma__favorite cron__tasks pma__bookmark bic__srvcs bic__pzn pma__usergroups uc__permissions pma__table_coords pma__navigationhiding pma__column_info bic__reg bic__acc_type seo__ips pma__table_uiprefs pma__export_templates cron__settings bic__settings sys__settings pma__userconfig pma__savedsearches pma__history pma__central_columns talks__alt_link_types bic__rclose pma__users pma__table_info pma__pdf_pages pma__designer_settings sys__log_types ban__mails uc__groups ffxiv__enemy ffxiv__grandcompany ffxiv__city ffxiv__pvpteam_rank ffxiv__guardian ban__ips ffxiv__count_filter ffxiv__timeactive ban__names ffxiv__linkshell_rank sys__languages ffxiv__clan talks__tags ffxiv__server ffxiv__nameday seo__visitors uc__users pma__recent seo__pageviews ffxiv__achievement uc__user_to_group uc__user_to_permission uc__group_to_permission uc__emails ffxiv__grandcompany_rank uc__cookies uc__sessions ffxiv__linkshell sys__files ffxiv__estate cron__log sys__logs ffxiv__pvpteam cron__schedule bic__list bic__accounts ffxiv__freecompany ffxiv__character ffxiv__character_achievement ffxiv__linkshell_names talks__types uc__avatars bic__bic_rstr bic__swift talks__sections ffxiv__linkshell_character talks__threads ffxiv__pvpteam_names talks__posts ffxiv__pvpteam_character bic__acc_rstr ffxiv__freecompany_names ffxiv__freecompany_ranking ffxiv__freecompany_rank ffxiv__character_names ffxiv__character_servers ffxiv__character_clans ffxiv__freecompany_character talks__thread_to_tags talks__alt_links talks__attachments talks__likes uc__user_to_section talks__old_music talks__posts_history
1+
pma__savedsearches pma__users ffxiv__orderby pma__table_info pma__central_columns pma__usergroups pma__favorite pma__relation talks__alt_link_types sys__settings pma__pdf_pages pma__userconfig pma__history bic__acc_type bic__rstr cron__tasks bic__rclose pma__tracking bic__reg uc__permissions pma__bookmark pma__table_uiprefs pma__navigationhiding pma__table_coords bic__pzn pma__column_info bic__srvcs bic__settings pma__designer_settings pma__export_templates cron__settings ban__names talks__tags ffxiv__city uc__groups ffxiv__guardian ffxiv__grandcompany ffxiv__timeactive sys__log_types ban__mails ffxiv__count_filter ffxiv__server ban__ips sys__languages ffxiv__linkshell_rank ffxiv__enemy ffxiv__clan ffxiv__pvpteam_rank ffxiv__nameday uc__users pma__recent ffxiv__achievement seo__ips seo__visitors seo__pageviews uc__group_to_permission uc__user_to_group uc__user_to_permission ffxiv__grandcompany_rank uc__cookies uc__emails cron__schedule ffxiv__estate sys__files sys__logs uc__sessions bic__list ffxiv__pvpteam bic__accounts ffxiv__linkshell cron__log ffxiv__freecompany ffxiv__character ffxiv__character_achievement talks__types uc__avatars bic__bic_rstr bic__swift talks__sections talks__threads ffxiv__pvpteam_names talks__posts talks__posts_history bic__acc_rstr ffxiv__pvpteam_character ffxiv__linkshell_names ffxiv__freecompany_ranking ffxiv__freecompany_names ffxiv__freecompany_rank ffxiv__character_servers ffxiv__linkshell_character ffxiv__character_names ffxiv__character_clans ffxiv__freecompany_character talks__thread_to_tags talks__attachments talks__likes uc__user_to_section talks__old_music talks__alt_links

DDL/talks__posts.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ CREATE TABLE `talks__posts` (
1212
PRIMARY KEY (`postid`) USING BTREE,
1313
KEY `post_to_thread` (`threadid`),
1414
KEY `post_to_post` (`replyto`),
15-
KEY `created_desc` (`created` DESC),
16-
KEY `created_asc` (`created`),
1715
KEY `post_created_by` (`createdby`),
1816
KEY `post_updated_by` (`updatedby`),
17+
KEY `created_desc` (`created` DESC),
18+
KEY `created_asc` (`created`),
1919
FULLTEXT KEY `text` (`text`),
2020
CONSTRAINT `post_created_by` FOREIGN KEY (`createdby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE,
2121
CONSTRAINT `post_to_post` FOREIGN KEY (`replyto`) REFERENCES `talks__posts` (`postid`) ON DELETE SET NULL ON UPDATE CASCADE,
2222
CONSTRAINT `post_to_thread` FOREIGN KEY (`threadid`) REFERENCES `talks__threads` (`threadid`) ON UPDATE CASCADE,
2323
CONSTRAINT `post_updated_by` FOREIGN KEY (`updatedby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE
24-
) ENGINE=InnoDB AUTO_INCREMENT=382 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of all posts' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;
24+
) ENGINE=InnoDB AUTO_INCREMENT=698 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of all posts' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;

DDL/talks__sections.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ CREATE TABLE `talks__sections` (
33
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_nopad_ai_ci NOT NULL COMMENT 'Forum name',
44
`description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_nopad_ai_ci DEFAULT NULL COMMENT 'Optional description of the forum',
55
`parentid` int(10) unsigned DEFAULT NULL COMMENT 'ID of the parent forum',
6-
`sequence` int(2) unsigned NOT NULL DEFAULT 0 COMMENT 'Optional order for sorting. The higher the value, the higher in the list a forum will be. After that name sorting is expected.',
6+
`sequence` int(2) unsigned NOT NULL DEFAULT 0 COMMENT 'Optional order for sorting. The higher the value, the higher in the list a forum will be. After that name sorting is expected. ',
77
`type` tinyint(3) unsigned NOT NULL DEFAULT 1 COMMENT 'Type of the forum',
88
`system` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'Flag indicating that forum is system one, thus should not be deleted.',
99
`closed` datetime(6) DEFAULT NULL COMMENT 'Flag indicating if the forum is closed',
10-
`private` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'Flag indicating if forum is private',
10+
`private` tinyint(1) unsigned NOT NULL DEFAULT 1 COMMENT 'Flag indicating if forum is private',
1111
`created` datetime(6) NOT NULL DEFAULT current_timestamp(6) COMMENT 'When forum was created',
1212
`createdby` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'User ID of the creator',
1313
`updated` datetime(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6) COMMENT 'When forum was updated',
1414
`updatedby` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'User ID of the last updater',
1515
`icon` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_nopad_as_ci DEFAULT NULL COMMENT 'Icon override',
1616
PRIMARY KEY (`sectionid`) USING BTREE,
17+
KEY `forum_created_by` (`createdby`),
18+
KEY `forum_updated_by` (`updatedby`),
1719
KEY `forum_to_forum` (`parentid`),
1820
KEY `name_sort` (`name`),
1921
KEY `sequence` (`sequence` DESC),
2022
KEY `forum_to_type` (`type`),
21-
KEY `forum_created_by` (`createdby`),
22-
KEY `forum_updated_by` (`updatedby`),
2323
KEY `section_to_file` (`icon`),
2424
FULLTEXT KEY `name` (`name`),
2525
FULLTEXT KEY `description` (`description`),
@@ -28,4 +28,4 @@ CREATE TABLE `talks__sections` (
2828
CONSTRAINT `forum_to_type` FOREIGN KEY (`type`) REFERENCES `talks__types` (`typeid`) ON UPDATE CASCADE,
2929
CONSTRAINT `forum_updated_by` FOREIGN KEY (`updatedby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE,
3030
CONSTRAINT `section_to_file` FOREIGN KEY (`icon`) REFERENCES `sys__files` (`fileid`)
31-
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of forums' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;
31+
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of forums' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;

DDL/talks__threads.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ CREATE TABLE `talks__threads` (
77
`pinned` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'Flag to indicate if a thread needs to be shown above others in the list',
88
`closed` datetime(6) DEFAULT NULL COMMENT 'Flag to indicate if a thread is closed',
99
`private` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'Flag to indicate if thread is private',
10-
`ogimage` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_nopad_as_ci DEFAULT NULL COMMENT 'Optional file ID to be used as og:image',
1110
`created` datetime(6) NOT NULL DEFAULT current_timestamp(6) COMMENT 'When thread was created',
1211
`createdby` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'User ID of the creator',
1312
`updated` datetime(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6) COMMENT 'When thread was updated',
1413
`updatedby` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'User ID of the updater',
1514
`lastpost` datetime(6) NOT NULL DEFAULT current_timestamp(6) COMMENT 'Time of the last post',
1615
`lastpostby` int(10) unsigned NOT NULL DEFAULT 1 COMMENT 'ID of the last poster',
16+
`ogimage` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_nopad_as_ci DEFAULT NULL COMMENT 'Optional file ID to be used as og:image',
1717
PRIMARY KEY (`threadid`) USING BTREE,
1818
KEY `thread_to_forum` (`sectionid`),
19+
KEY `thread_language` (`language`),
20+
KEY `thread_created_by` (`createdby`),
21+
KEY `thread_updated_by` (`updatedby`),
1922
KEY `pinned` (`pinned` DESC),
2023
KEY `name_sort` (`name`),
2124
KEY `created_desc` (`created` DESC),
22-
KEY `thread_created_by` (`createdby`),
23-
KEY `thread_updated_by` (`updatedby`),
2425
KEY `thread_lastpost_by` (`lastpostby`),
2526
KEY `lastpost_desc` (`lastpost` DESC),
2627
KEY `closed_desc` (`closed` DESC),
2728
KEY `ogimage_to_fileid` (`ogimage`),
28-
KEY `thread_language` (`language`),
2929
FULLTEXT KEY `name` (`name`),
3030
CONSTRAINT `ogimage_to_fileid` FOREIGN KEY (`ogimage`) REFERENCES `sys__files` (`fileid`),
3131
CONSTRAINT `thread_created_by` FOREIGN KEY (`createdby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE,
3232
CONSTRAINT `thread_language` FOREIGN KEY (`language`) REFERENCES `sys__languages` (`tag`),
3333
CONSTRAINT `thread_lastpost_by` FOREIGN KEY (`lastpostby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE,
3434
CONSTRAINT `thread_to_forum` FOREIGN KEY (`sectionid`) REFERENCES `talks__sections` (`sectionid`) ON UPDATE CASCADE,
3535
CONSTRAINT `thread_updated_by` FOREIGN KEY (`updatedby`) REFERENCES `uc__users` (`userid`) ON UPDATE CASCADE
36-
) ENGINE=InnoDB AUTO_INCREMENT=382 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of threads' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;
36+
) ENGINE=InnoDB AUTO_INCREMENT=621 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs COMMENT='List of threads' `PAGE_COMPRESSED`='ON' ROW_FORMAT=Dynamic;

DDL/uc__sessions.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ CREATE TABLE `uc__sessions` (
1414
KEY `bot` (`bot`),
1515
KEY `viewing` (`page`),
1616
KEY `session_to_user` (`userid`),
17-
KEY `time` (`time` DESC),
1817
KEY `session_to_cookie` (`cookieid`),
18+
KEY `time` (`time` DESC),
1919
CONSTRAINT `session_to_cookie` FOREIGN KEY (`cookieid`) REFERENCES `uc__cookies` (`cookieid`),
2020
CONSTRAINT `session_to_user` FOREIGN KEY (`userid`) REFERENCES `uc__users` (`userid`) ON DELETE CASCADE ON UPDATE CASCADE
2121
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_nopad_as_cs ROW_FORMAT=DYNAMIC `PAGE_COMPRESSED`='ON';

config/mysql/mariadb.cron

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0 9 1 */2 * /etc/mysql/conf.d/ssl.sh flush
1+
0 5 1 */2 * /etc/mysql/conf.d/ssl.sh flush
22
0 3 * * * /etc/mysql/conf.d/backup.sh

0 commit comments

Comments
 (0)