diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-11-14 16:15:33 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-12-01 15:26:41 -0800 |
commit | 0e97e3089fba60c3e405f907cbc937cbc1b662ad (patch) | |
tree | 2f2841fcf6121aab4cc8cacbece89f9b6e864e64 /db | |
parent | 3dc0b118eca3716c0cda841232e0789739627957 (diff) | |
download | gitlab-ce-0e97e3089fba60c3e405f907cbc937cbc1b662ad.tar.gz |
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.rb | 2 |
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 |