$max['groupid'] + 1]); } $ret = Database::exec("INSERT IGNORE INTO remoteaccess_x_location (groupid, locationid) SELECT locationid, locationid FROM remoteaccess_location"); if ($ret === false) { finalResponse(UPDATE_FAILED, Database::lastError()); } Database::exec("DROP TABLE remoteaccess_location"); } // 2021-03-05: Add vncport column to machine table if (!tableHasColumn('remoteaccess_machine', 'vncport')) { $ret = Database::exec("ALTER TABLE remoteaccess_machine ADD COLUMN `vncport` smallint(5) UNSIGNED NOT NULL DEFAULT '5900'"); if ($ret === false) { finalResponse(UPDATE_FAILED, Database::lastError()); } $dbret[] = UPDATE_DONE; } responseFromArray($dbret);