The `work_packages_export_limit` was renmaed to `work_packages_projects_export_limit`, but the previous values were not retained. https://community.openproject.org/work_packages/43642pull/11134/head
parent
2081de3b43
commit
da5ce8708f
@ -0,0 +1,19 @@ |
||||
class RenameWorkPackageExportLimit < ActiveRecord::Migration[7.0] |
||||
def up |
||||
if Setting.exists?(name: 'work_packages_projects_export_limit') |
||||
Setting |
||||
.where(name: 'work_packages_export_limit') |
||||
.delete_all |
||||
else |
||||
Setting |
||||
.where(name: 'work_packages_export_limit') |
||||
.update_all(name: 'work_packages_projects_export_limit') |
||||
end |
||||
end |
||||
|
||||
def down |
||||
Setting |
||||
.where(name: 'work_packages_projects_export_limit') |
||||
.update_all(name: 'work_packages_export_limit') |
||||
end |
||||
end |
Loading…
Reference in new issue