瀏覽代碼

Prevent warning about already defined constant.

git-svn-id: http://svn.redmine.org/redmine/trunk@16345 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 年之前
父節點
當前提交
7d04dca697
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      lib/tasks/redmine.rake

+ 3
- 0
lib/tasks/redmine.rake 查看文件

Target.connection.reset_pk_sequence!(table_name) if Target.primary_key Target.connection.reset_pk_sequence!(table_name) if Target.primary_key
target_count = Target.count target_count = Target.count
abort "Some records were not migrated" unless source_count == target_count abort "Some records were not migrated" unless source_count == target_count

Object.send(:remove_const, :Target)
Object.send(:remove_const, :Source)
end end
end end



Loading…
取消
儲存