fix x gruppi
This commit is contained in:
@@ -202,6 +202,11 @@ function plugin_urbackup_install_update_servers_table(Migration $migration): voi
|
||||
'after' => 'name',
|
||||
]);
|
||||
|
||||
$migration->addField($table, 'users_id', 'integer', [
|
||||
'value' => 0,
|
||||
'after' => 'locations_id',
|
||||
]);
|
||||
|
||||
$migration->addField($table, 'ip_address', 'string', [
|
||||
'value' => '',
|
||||
'after' => 'locations_id',
|
||||
@@ -262,6 +267,7 @@ function plugin_urbackup_install_update_servers_table(Migration $migration): voi
|
||||
$migration->addKey($table, 'name');
|
||||
$migration->addKey($table, 'entities_id');
|
||||
$migration->addKey($table, 'locations_id');
|
||||
$migration->addKey($table, 'users_id');
|
||||
$migration->addKey($table, 'is_active');
|
||||
$migration->addKey($table, ['locations_id', 'is_active'], 'location_active');
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_urbackup_servers` (
|
||||
`is_recursive` TINYINT NOT NULL DEFAULT 0,
|
||||
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`locations_id` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`users_id` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`ip_address` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`port` INT UNSIGNED NOT NULL DEFAULT 55414,
|
||||
`protocol` VARCHAR(10) NOT NULL DEFAULT 'http',
|
||||
@@ -32,6 +33,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_urbackup_servers` (
|
||||
KEY `name` (`name`),
|
||||
KEY `entities_id` (`entities_id`),
|
||||
KEY `locations_id` (`locations_id`),
|
||||
KEY `users_id` (`users_id`),
|
||||
KEY `is_active` (`is_active`),
|
||||
KEY `location_active` (`locations_id`, `is_active`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
||||
|
||||
Reference in New Issue
Block a user