-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Removing artificial sharding from com_finder #20185
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d437f07
Removing artificial sharding from com_finder
Hackwar 8d12204
Fixing codestyle
Hackwar ad345a2
Merge branch '4.0-dev' into j4finder_sharding
Hackwar 3763187
the update sql for postgresql
alikon 7dd2bea
Merge pull request #22 from alikon/patch-104
Hackwar 455fc19
Reverting changes to com_finder router
Hackwar c80b975
Merge branch '4.0-dev' of https://github.com/joomla/joomla-cms into j…
Hackwar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed
|
||
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tables are not dropped and I don't know why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this operation manually, and work ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not via
Extensions > Manage > Database > Fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iirc you can't do a drop that way