Sha256: 7ef5ea71d29307c8e73a46adfbd783bd6696256b3cca6069cce9d89cb6c6770c

Contents?: true

Size: 660 Bytes

Versions: 83

Compression:

Stored size: 660 Bytes

Contents

Sequel.migration do
  change do
    drop_table :test_run_inputs
    drop_table :result_inputs

    set_column_type :session_data, :value, String, text: true
    drop_index :session_data, [:test_session_id, :name]
    add_index :session_data, [:test_session_id, :name], unique: true
    drop_index :session_data, :id
    add_index :session_data, :id, unique: true

    add_column :results, :input_json, String, text: true
    add_column :results, :output_json, String, text: true
    add_index :results, [:test_session_id, :test_id]
    add_index :results, [:test_session_id, :test_group_id]
    add_index :results, [:test_session_id, :test_suite_id]
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
inferno_core-0.1.1.pre lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.1.0 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.1.0.pre lib/inferno/db/migrations/003_update_session_data.rb