-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from sanger/dpl642_index_long_read_qc_results
Dpl642 index long read qc results
- Loading branch information
Showing
5 changed files
with
44 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.17.1 | ||
1.17.2 |
8 changes: 8 additions & 0 deletions
8
db/migrate/20230816092204_add_index_long_read_qc_results_sample_id.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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
# Add index on sample id for long read qc results to be able to join with samples | ||
class AddIndexLongReadQcResultsSampleId < ActiveRecord::Migration[7.0] | ||
def change | ||
add_index :long_read_qc_result, :sample_id, unique: false | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20230816100140_add_index_long_read_qc_results_assay_type_key.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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
# Index to query long_read_qc_results using assay_type_key | ||
class AddIndexLongReadQcResultsAssayTypeKey < ActiveRecord::Migration[7.0] | ||
def change | ||
add_index :long_read_qc_result, :assay_type_key, unique: false | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20230821100520_change_encoding_long_read_qc_results.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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# Change encoding of long_read_qc_result table | ||
class ChangeEncodingLongReadQcResults < ActiveRecord::Migration[7.0] | ||
def self.up | ||
ActiveRecord::Base.connection | ||
execute "ALTER TABLE `long_read_qc_result` CONVERT TO CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci';" | ||
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