Skip to content

Commit

Permalink
modify migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeto-J committed Nov 21, 2023
1 parent fa1135d commit b7d7d73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
15 changes: 3 additions & 12 deletions install/migrations/update_10.0.x_to_10.1.0/group_notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
$migration->addField(
$table,
$field_to_add,
'tinyint',
[
'value' => 0,
]
"tinyint NOT NULL DEFAULT '0'"
);
$migration->addKey($table, $field_to_add);
}
Expand All @@ -59,10 +56,7 @@
$migration->addField(
$table,
$field_to_add,
'tinyint',
[
'value' => 0,
]
"tinyint NOT NULL DEFAULT '0'"
);
$migration->addKey($table, $field_to_add);
}
Expand All @@ -73,10 +67,7 @@
$migration->addField(
$table,
$field_to_add,
'tinyint',
[
'value' => 0,
]
"tinyint NOT NULL DEFAULT '0'"
);
$migration->addKey($table, $field_to_add);
}
9 changes: 6 additions & 3 deletions install/mysql/glpi-empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ CREATE TABLE `glpi_changes_groups` (
`use_notification` tinyint NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`changes_id`,`type`,`groups_id`),
KEY `group` (`groups_id`,`type`)
KEY `group` (`groups_id`,`type`),
KEY `use_notification` (`use_notification`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;


Expand Down Expand Up @@ -3079,7 +3080,8 @@ CREATE TABLE `glpi_groups_problems` (
`use_notification` tinyint NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`problems_id`,`type`,`groups_id`),
KEY `group` (`groups_id`,`type`)
KEY `group` (`groups_id`,`type`),
KEY `use_notification` (`use_notification`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;


Expand Down Expand Up @@ -3130,7 +3132,8 @@ CREATE TABLE `glpi_groups_tickets` (
`use_notification` tinyint NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `unicity` (`tickets_id`,`type`,`groups_id`),
KEY `group` (`groups_id`,`type`)
KEY `group` (`groups_id`,`type`),
KEY `use_notification` (`use_notification`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;


Expand Down

0 comments on commit b7d7d73

Please sign in to comment.