OPSI.Util.Task.UpdateBackend.MySQL module

Functionality to update an MySQL backend.

New in version 4.0.6.1.

author:Niko Wenselowski <n.wenselowski@uib.de>
license:GNU Affero General Public License version 3
OPSI.Util.Task.UpdateBackend.MySQL.disableForeignKeyChecks(*args, **kwds)

Disable checks for foreign keys in context and enable afterwards.

This will disable FOREIGN_KEY_CHECKS for the context and enable them afterwards. It will set this per session, not global.

OPSI.Util.Task.UpdateBackend.MySQL.getTableColumns(database, tableName)
OPSI.Util.Task.UpdateBackend.MySQL.updateMySQLBackend(backendConfigFile=u'/etc/opsi/backends/mysql.conf', additionalBackendConfiguration={})