Sha256: 8249c8658a1047481ea3a351ce8fab72c38c134315101ec20f1f1048e0bef72b

Contents?: true

Size: 922 Bytes

Versions: 83

Compression:

Stored size: 922 Bytes

Contents

Sequel.migration do
  change do
    drop_table :result_outputs
    drop_table :result_prompt_values

    alter_table(:test_sessions) { set_column_not_null :test_suite_id }

    alter_table(:results) do
      set_column_not_null :test_run_id
      set_column_not_null :test_session_id
    end

    alter_table(:messages) do
      set_column_not_null :result_id
      set_column_not_null :type
      set_column_not_null :message
    end

    alter_table(:requests) do
      set_column_not_null :verb
      set_column_not_null :url
      set_column_not_null :direction
      set_column_not_null :result_id
      set_column_not_null :test_session_id
    end

    alter_table(:headers) do
      set_column_not_null :request_id
      set_column_not_null :type
      set_column_not_null :name
    end

    alter_table(:session_data) do
      set_column_not_null :test_session_id
      set_column_not_null :name
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.6.0 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.5.4 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.5.3 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.5.2 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.5.1 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.5.0 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.44 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.43 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.42 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.41 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.40 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.39 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.38 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.35 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.34 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.33 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.32 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.31 lib/inferno/db/migrations/006_remove_unused_tables.rb
inferno_core-0.4.30 lib/inferno/db/migrations/006_remove_unused_tables.rb