diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb | 17 | ||||
| -rw-r--r-- | db/schema.rb | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb b/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb new file mode 100644 index 00000000000..deba890a478 --- /dev/null +++ b/db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb @@ -0,0 +1,17 @@ +class AddArtifactsStoreToCiBuild < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default(:ci_builds, :artifacts_file_store, :integer, default: 1) + add_column_with_default(:ci_builds, :artifacts_metadata_store, :integer, default: 1) + end + + def down + remove_column(:ci_builds, :artifacts_file_store) + remove_column(:ci_builds, :artifacts_metadata_store) + end +end diff --git a/db/schema.rb b/db/schema.rb index 2149f5ad23d..74634d14ccb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -247,6 +247,8 @@ ActiveRecord::Schema.define(version: 20170905112933) do t.integer "auto_canceled_by_id" t.boolean "retried" t.integer "stage_id" + t.integer "artifacts_file_store", default: 1, null: false + t.integer "artifacts_metadata_store", default: 1, null: false t.boolean "protected" t.integer "failure_reason" end |
