Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-11-15 03:15:33 +0300
committerMichael Kozono <mkozono@gmail.com>2017-12-02 02:26:41 +0300
commit0e97e3089fba60c3e405f907cbc937cbc1b662ad (patch)
tree2f2841fcf6121aab4cc8cacbece89f9b6e864e64 /db
parent3dc0b118eca3716c0cda841232e0789739627957 (diff)
Fix MySQL path field length
I believe the field only needs to fit 519 at the moment but I’m rounding up to be a little safer. See the migration spec for more detail on the magic number 519.
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20171103140253_track_untracked_uploads.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20171103140253_track_untracked_uploads.rb b/db/post_migrate/20171103140253_track_untracked_uploads.rb
index 5e4e357b8bc..09ff21b103f 100644
--- a/db/post_migrate/20171103140253_track_untracked_uploads.rb
+++ b/db/post_migrate/20171103140253_track_untracked_uploads.rb
@@ -12,7 +12,7 @@ class TrackUntrackedUploads < ActiveRecord::Migration
def up
unless table_exists?(:untracked_files_for_uploads)
create_table :untracked_files_for_uploads do |t|
- t.string :path, null: false
+ t.string :path, limit: 600, null: false
t.boolean :tracked, default: false, null: false
t.timestamps_with_timezone null: false
end