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.6.1 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.6.0 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.5.4 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.5.3 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.5.2 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.5.1 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.5.0 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.44 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.43 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.42 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.41 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.40 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.39 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.38 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.35 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.34 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.33 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.32 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.31 lib/inferno/db/migrations/003_update_session_data.rb
inferno_core-0.4.30 lib/inferno/db/migrations/003_update_session_data.rb