diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-09-16 10:44:55 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-09-16 10:44:55 +0000 |
commit | 065341bf04958b862db9cc2891c7822a3da7f7f8 (patch) | |
tree | 96170790ecd86f7e32789497d5cd38c6d8b51d22 /db | |
parent | 16da82f441046884dc318bc1829777cc19b444fe (diff) | |
parent | b7e6357e54470f3536c9904d6742f85c7738e2d2 (diff) | |
download | gitlab-ce-065341bf04958b862db9cc2891c7822a3da7f7f8.tar.gz |
Merge branch 'increase_artifact_size_column' into 'master'
Increase ci_builds artifacts_size column to 8-byte integer to allow larger files
See merge request !6333
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160913212128_change_artifacts_size_column.rb | 15 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/db/migrate/20160913212128_change_artifacts_size_column.rb b/db/migrate/20160913212128_change_artifacts_size_column.rb new file mode 100644 index 00000000000..063bbca537c --- /dev/null +++ b/db/migrate/20160913212128_change_artifacts_size_column.rb @@ -0,0 +1,15 @@ +class ChangeArtifactsSizeColumn < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = true + + DOWNTIME_REASON = 'Changing an integer column size requires a full table rewrite.' + + def up + change_column :ci_builds, :artifacts_size, :integer, limit: 8 + end + + def down + # do nothing + end +end diff --git a/db/schema.rb b/db/schema.rb index 70279f372c9..974f5855cf9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160913162434) do +ActiveRecord::Schema.define(version: 20160913212128) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -177,7 +177,7 @@ ActiveRecord::Schema.define(version: 20160913162434) do t.datetime "erased_at" t.datetime "artifacts_expire_at" t.string "environment" - t.integer "artifacts_size" + t.integer "artifacts_size", limit: 8 t.string "when" t.text "yaml_variables" t.datetime "queued_at" |