-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.0] Removing artificial sharding from com_finder (#20185)
* Removing artificial sharding from com_finder * Fixing codestyle * the update sql for postgresql * Reverting changes to com_finder router
- Loading branch information
Showing
16 changed files
with
489 additions
and
1,997 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-04-14.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
CREATE TABLE `#__finder_links_terms` ( | ||
`link_id` INT(10) UNSIGNED NOT NULL, | ||
`term_id` INT(10) UNSIGNED NOT NULL, | ||
`weight` FLOAT UNSIGNED NOT NULL, | ||
PRIMARY KEY (`link_id`, `term_id`), | ||
INDEX `idx_term_weight` (`term_id`, `weight`), | ||
INDEX `idx_link_term_weight` (`link_id`, `term_id`, `weight`) | ||
) | ||
COLLATE='utf8mb4_general_ci' | ||
ENGINE=InnoDB | ||
; | ||
DROP TABLE #__finder_links_terms0; | ||
DROP TABLE #__finder_links_terms1; | ||
DROP TABLE #__finder_links_terms2; | ||
DROP TABLE #__finder_links_terms3; | ||
DROP TABLE #__finder_links_terms4; | ||
DROP TABLE #__finder_links_terms5; | ||
DROP TABLE #__finder_links_terms6; | ||
DROP TABLE #__finder_links_terms7; | ||
DROP TABLE #__finder_links_terms8; | ||
DROP TABLE #__finder_links_terms9; | ||
DROP TABLE #__finder_links_termsa; | ||
DROP TABLE #__finder_links_termsb; | ||
DROP TABLE #__finder_links_termsc; | ||
DROP TABLE #__finder_links_termsd; | ||
DROP TABLE #__finder_links_termse; | ||
DROP TABLE #__finder_links_termsf; | ||
|
||
ALTER TABLE `#__finder_terms` | ||
CHANGE COLUMN `language` `language` CHAR(7) NOT NULL DEFAULT '' AFTER `links`; | ||
|
||
ALTER TABLE `#__finder_terms_common` | ||
CHANGE COLUMN `language` `language` CHAR(7) NOT NULL DEFAULT '' AFTER `term`; | ||
|
||
ALTER TABLE `#__finder_tokens` | ||
CHANGE COLUMN `language` `language` CHAR(7) NOT NULL DEFAULT '' AFTER `context`; | ||
|
||
ALTER TABLE `#__finder_tokens_aggregate` | ||
DROP COLUMN `map_suffix`; | ||
|
||
ALTER TABLE `#__finder_tokens_aggregate` | ||
CHANGE COLUMN `language` `language` CHAR(7) NOT NULL DEFAULT '' AFTER `total_weight`; | ||
|
||
ALTER TABLE `#__finder_links` | ||
CHANGE COLUMN `language` `language` CHAR(7) NOT NULL DEFAULT '' AFTER `access`; |
48 changes: 48 additions & 0 deletions
48
administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-04-14.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
CREATE TABLE "#__finder_links_terms" ( | ||
"link_id" bigint NOT NULL, | ||
"term_id" bigint NOT NULL, | ||
"weight" REAL NOT NULL, | ||
PRIMARY KEY ("link_id", "term_id") | ||
); | ||
CREATE INDEX "idx_term_weight" ("term_id", "weight"); | ||
CREATE INDEX "idx_link_term_weight" ("link_id", "term_id", "weight"); | ||
|
||
DROP TABLE "#__finder_links_terms0" CASCADE; | ||
DROP TABLE "#__finder_links_terms1" CASCADE; | ||
DROP TABLE "#__finder_links_terms2" CASCADE; | ||
DROP TABLE "#__finder_links_terms3" CASCADE; | ||
DROP TABLE "#__finder_links_terms4" CASCADE; | ||
DROP TABLE "#__finder_links_terms5" CASCADE; | ||
DROP TABLE "#__finder_links_terms6" CASCADE; | ||
DROP TABLE "#__finder_links_terms7" CASCADE; | ||
DROP TABLE "#__finder_links_terms8" CASCADE; | ||
DROP TABLE "#__finder_links_terms9" CASCADE; | ||
DROP TABLE "#__finder_links_termsa" CASCADE; | ||
DROP TABLE "#__finder_links_termsb" CASCADE; | ||
DROP TABLE "#__finder_links_termsc" CASCADE; | ||
DROP TABLE "#__finder_links_termsd" CASCADE; | ||
DROP TABLE "#__finder_links_termse" CASCADE; | ||
DROP TABLE "#__finder_links_termsf" CASCADE; | ||
|
||
ALTER TABLE "#__finder_terms" | ||
ALTER COLUMN "language" TYPE CHAR(7), | ||
ALTER COLUMN "language" SET DEFAULT ''; | ||
|
||
ALTER TABLE "#__finder_common" | ||
ALTER COLUMN "language" TYPE CHAR(7), | ||
ALTER COLUMN "language" SET DEFAULT ''; | ||
|
||
ALTER TABLE "#__finder_tokens" | ||
ALTER COLUMN "language" TYPE CHAR(7), | ||
ALTER COLUMN "language" SET DEFAULT ''; | ||
|
||
ALTER TABLE "#__finder_tokens_aggregate" | ||
ALTER COLUMN "language" TYPE CHAR(7), | ||
ALTER COLUMN "language" SET DEFAULT ''; | ||
|
||
ALTER TABLE "#__finder_tokens_aggregate" | ||
DROP COLUMN "map_suffix"; | ||
|
||
ALTER TABLE "#__finder_links" | ||
ALTER COLUMN "language" TYPE CHAR(7), | ||
ALTER COLUMN "language" SET DEFAULT ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.