migrator->add('server.allocation_limit', ($this->getOldValue('SETTINGS::SERVER:ALLOCATION_LIMIT') != null) ?: 200); } public function getOldValue(string $key) { if (DB::table('settings_old')->exists()) { return DB::table('settings_old')->where('key', '=', $key)->get(['value']); } return null; } }