summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDrew Blessing <drew@gitlab.com>2016-09-15 21:52:17 -0500
committerDrew Blessing <drew@gitlab.com>2016-09-15 21:52:34 -0500
commitb7e6357e54470f3536c9904d6742f85c7738e2d2 (patch)
treecf76b0165d26addc2cb431501aca8e3815e661a1 /db/migrate
parent1038ef54d0405ae08eb3f413f936197f0775987b (diff)
downloadgitlab-ce-b7e6357e54470f3536c9904d6742f85c7738e2d2.tar.gz
Increase ci_builds artifacts_size column to 8-byte integer to allow larger files
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160913212128_change_artifacts_size_column.rb15
1 files changed, 15 insertions, 0 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