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.4.29 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.28 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.27 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.26 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.25 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.24 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.23 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.22 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.21 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.20 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.19 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.18 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.17 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.16 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.15 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.14 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.13 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.12 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.11 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.10 lib/inferno/db/migrations/003_update_session_data.rb