提交 67686e38 编写于 作者: V Valery Sizov

Added migration to reset existing relative_position for issues

上级 96fe1856
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class ResetRelativePositionForIssue < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
execute <<-EOS
UPDATE issues SET relative_position = NULL
WHERE issues.relative_position IS NOT NULL;
EOS
end
def down
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册