Skip to content

Commit

Permalink
Merge pull request #597 from sanger/579-dpl-1049-update-comment-for-i…
Browse files Browse the repository at this point in the history
…seq_flowcell-entity_type

Adding the migrations for comment change
  • Loading branch information
dasunpubudumal authored Feb 28, 2024
2 parents bb2a35c + c30b5c3 commit 4948ae9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4948ae9

Please sign in to comment.