Skip to content

Commit

Permalink
Merge pull request #713 from sanger/4409-y24-379-export_ena-database-…
Browse files Browse the repository at this point in the history
…fields_to_mlwh

add ebi fields to study
  • Loading branch information
wendyyang authored Jan 21, 2025
2 parents c80500b + 94c4bd8 commit b7f4dd5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions db/migrate/20250110153629_add_ebi_fields_to_study.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddEbiFieldsToStudy < ActiveRecord::Migration[7.0]
def change
add_column :study, :ebi_library_strategy, :string, default: nil
add_column :study, :ebi_library_source, :string, default: nil
add_column :study, :ebi_library_selection, :string, default: nil
end
end
5 changes: 4 additions & 1 deletion 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: 2024_12_11_144506) do
ActiveRecord::Schema[7.0].define(version: 2025_01_10_153629) do
create_table "aliquot", charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t|
t.string "id_lims", null: false, comment: "The LIMS system that the aliquot was created in"
t.string "aliquot_uuid", null: false, comment: "The UUID of the aliquot in the LIMS system"
Expand Down Expand Up @@ -465,6 +465,9 @@
t.string "data_deletion_period"
t.string "contaminated_human_data_access_group"
t.string "programme"
t.string "ebi_library_strategy"
t.string "ebi_library_source"
t.string "ebi_library_selection"
t.index ["accession_number"], name: "study_accession_number_index"
t.index ["id_lims", "id_study_lims"], name: "study_id_lims_id_study_lims_index", unique: true
t.index ["id_study_lims"], name: "index_study_on_id_study_lims"
Expand Down
1 change: 1 addition & 0 deletions db/views_schema.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is an automatically generated file by rake:db:views:dump_schema
mlwh_wh_db = Rails.configuration.view_schema_mlwh_db
event_wh_db = Rails.configuration.view_schema_ewh_db

Expand Down

0 comments on commit b7f4dd5

Please sign in to comment.