diff --git a/db/migrate/20240228140011_update_iseq_flowcell_entity_type_comment.rb b/db/migrate/20240228140011_update_iseq_flowcell_entity_type_comment.rb new file mode 100644 index 00000000..e4d8c63b --- /dev/null +++ b/db/migrate/20240228140011_update_iseq_flowcell_entity_type_comment.rb @@ -0,0 +1,9 @@ +class UpdateIseqFlowcellEntityTypeComment < ActiveRecord::Migration[7.0] + def up + change_column_comment :iseq_flowcell, :entity_type, "Lane type: library, library_control, library_indexed, library_indexed_spike" + end + + def down + change_column_comment :iseq_flowcell, :entity_type, "Lane type: library, pool, library_control, library_indexed, library_indexed_spike" + end +end diff --git a/db/schema.rb b/db/schema.rb index 5ce766f3..280d2c1a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_12_07_143456) do +ActiveRecord::Schema[7.0].define(version: 2024_02_28_140011) do create_table "bmap_flowcell", primary_key: "id_bmap_flowcell_tmp", id: :integer, charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t| t.datetime "last_updated", precision: nil, null: false, comment: "Timestamp of last update" t.datetime "recorded_at", precision: nil, null: false, comment: "Timestamp of warehouse update" @@ -67,7 +67,7 @@ t.string "reagent_kit_barcode", limit: 30, comment: "The barcode for the reagent kit or cartridge" t.string "id_flowcell_lims", limit: 20, null: false, comment: "LIMs-specific flowcell id, batch_id for Sequencescape" t.integer "position", limit: 2, null: false, comment: "Flowcell lane number", unsigned: true - t.string "entity_type", limit: 30, null: false, comment: "Lane type: library, pool, library_control, library_indexed, library_indexed_spike" + t.string "entity_type", limit: 30, null: false, comment: "Lane type: library, library_control, library_indexed, library_indexed_spike" t.string "entity_id_lims", limit: 20, null: false, comment: "Most specific LIMs identifier associated with this lane or plex or spike" t.integer "tag_index", limit: 2, comment: "Tag index, NULL if lane is not a pool", unsigned: true t.string "tag_sequence", limit: 30, comment: "Tag sequence"