Skip to content

Commit a604403

Browse files
Merge pull request #927 from sanger/develop
[release] Merge Develop into Master for 1.35.2
2 parents 8a90d21 + dd4d7b7 commit a604403

6 files changed

Lines changed: 34 additions & 5 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/doc
1717

1818
coverage
19+
lcov.info
1920

2021
# Allow custom config files if desired
2122
*.local.yml

.release-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.35.1
1+
1.35.2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DBAs requested to adjust table definition in the MLWH database so that the upgrade to MySQL v8.4
2+
# can proceed smoothly. See Y26-207
3+
class AlterOSeqFlowcellRowFormat < ActiveRecord::Migration[7.2]
4+
def up
5+
ActiveRecord::Base.connection.execute("ALTER TABLE `oseq_flowcell` ROW_FORMAT=DYNAMIC;")
6+
end
7+
8+
def down
9+
raise ActiveRecord::IrreversibleMigration
10+
end
11+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DBAs requested to adjust table definition in the MLWH database so that the upgrade to MySQL v8.4
2+
# can proceed smoothly. See Y26-207
3+
class AlterLighthouseSampleRowFormat < ActiveRecord::Migration[7.2]
4+
def up
5+
ActiveRecord::Base.connection.execute("ALTER TABLE `lighthouse_sample` ROW_FORMAT=DYNAMIC;")
6+
end
7+
8+
def down
9+
raise ActiveRecord::IrreversibleMigration
10+
end
11+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class ExtendAliquotSampleNameColumn < ActiveRecord::Migration[7.2]
2+
def up
3+
change_column :aliquot, :sample_name, :string, limit: 512
4+
change_column_comment :aliquot, :sample_name, 'The name of the sample, or colon separated list of sample names, that the aliquot was created from'
5+
end
6+
end

db/schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_05_29_124351) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_07_01_125103) do
1414
create_table "aliquot", charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
1515
t.string "id_lims", null: false, comment: "The LIMS system that the aliquot was created in"
1616
t.string "aliquot_uuid", null: false, comment: "The UUID of the aliquot in the LIMS system"
1717
t.string "aliquot_type", null: false, comment: "The type of the aliquot"
1818
t.string "source_type", null: false, comment: "The type of the source of the aliquot"
1919
t.string "source_barcode", null: false, comment: "The barcode of the source of the aliquot"
20-
t.string "sample_name", null: false, comment: "The name of the sample that the aliquot was created from"
20+
t.string "sample_name", limit: 512, null: false, comment: "The name of the sample, or colon separated list of sample names, that the aliquot was created from"
2121
t.string "used_by_type", null: false, comment: "The type of the entity that the aliquot is used by"
2222
t.string "used_by_barcode", null: false, comment: "The barcode of the entity that the aliquot is used by"
2323
t.decimal "volume", precision: 10, scale: 2, null: false, comment: "The volume of the aliquot (uL)"
@@ -181,7 +181,7 @@
181181
t.index ["location_barcode"], name: "index_labware_location_on_location_barcode"
182182
end
183183

184-
create_table "lighthouse_sample", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
184+
create_table "lighthouse_sample", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
185185
t.string "mongodb_id", comment: "Auto-generated id from MongoDB"
186186
t.string "root_sample_id", null: false, comment: "Id for this sample provided by the Lighthouse lab"
187187
t.string "cog_uk_id", null: false, comment: "Consortium-wide id, generated by Sanger on import to LIMS"
@@ -248,7 +248,7 @@
248248
t.index ["sample_id"], name: "index_long_read_qc_result_on_sample_id"
249249
end
250250

251-
create_table "oseq_flowcell", primary_key: "id_oseq_flowcell_tmp", id: { type: :integer, unsigned: true }, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
251+
create_table "oseq_flowcell", primary_key: "id_oseq_flowcell_tmp", id: { type: :integer, unsigned: true }, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t|
252252
t.string "id_flowcell_lims", null: false, comment: "LIMs-specific flowcell id"
253253
t.datetime "last_updated", precision: nil, null: false, comment: "Timestamp of last update"
254254
t.datetime "recorded_at", precision: nil, null: false, comment: "Timestamp of warehouse update"

0 commit comments

Comments
 (0)