-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SwimmerStat query fix: wasn't getting the proper min FIN score right;…
… split fulltext indexes for Meeting, UserWorkshop & Team: search individual columns instead of groups to yield better results; rel. 0.7.09
- Loading branch information
Showing
11 changed files
with
100 additions
and
42 deletions.
There are no files selected for viewing
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
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
23 changes: 23 additions & 0 deletions
23
db/migrate/20240415092625_add_split_fulltext_indexes_for_meeting_and_workshops.rb
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,23 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddSplitFulltextIndexesForMeetingAndWorkshops < ActiveRecord::Migration[6.1] | ||
def self.up | ||
execute('CREATE FULLTEXT INDEX meeting_code ON meetings(code);') | ||
execute('CREATE FULLTEXT INDEX meeting_desc ON meetings(description);') | ||
execute('CREATE FULLTEXT INDEX workshop_code ON user_workshops(code);') | ||
execute('CREATE FULLTEXT INDEX workshop_desc ON user_workshops(description);') | ||
execute('CREATE FULLTEXT INDEX team_only_name ON teams(name);') | ||
execute('CREATE FULLTEXT INDEX team_editable_name ON teams(editable_name);') | ||
execute('CREATE FULLTEXT INDEX team_name_variations ON teams(name_variations);') | ||
end | ||
|
||
def self.down | ||
execute('ALTER TABLE meetings DROP INDEX meeting_code;') | ||
execute('ALTER TABLE meetings DROP INDEX meeting_desc;') | ||
execute('ALTER TABLE user_workshops DROP INDEX workshop_code;') | ||
execute('ALTER TABLE user_workshops DROP INDEX workshop_desc;') | ||
execute('ALTER TABLE teams DROP INDEX team_only_name;') | ||
execute('ALTER TABLE teams DROP INDEX team_editable_name;') | ||
execute('ALTER TABLE teams DROP INDEX team_name_variations;') | ||
end | ||
end |
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,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'goggles_db/version' | ||
|
||
class UpdateDbVersionTo20702 < ActiveRecord::Migration[6.1] | ||
def self.up | ||
# --- Update DB structure versioning: | ||
GogglesDb::AppParameter.versioning_row.update( | ||
GogglesDb::AppParameter::FULL_VERSION_FIELDNAME => GogglesDb::Version::FULL, | ||
GogglesDb::AppParameter::DB_VERSION_FIELDNAME => GogglesDb::Version::DB | ||
) | ||
end | ||
|
||
def self.down | ||
# (no-op) | ||
end | ||
end |
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