2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-01-12 11:53:43 +00:00
|
|
|
class LdapSamaccountnameToUid < ActiveRecord::Migration[5.1]
|
|
|
|
|
|
|
|
def up
|
|
|
|
# return if it's a new setup to avoid running the migration
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2018-01-12 11:53:43 +00:00
|
|
|
|
2020-10-27 15:36:38 +00:00
|
|
|
MigrateLdapSamaccountnameToUidJob.perform_later
|
2018-01-12 11:53:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|