Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 32c3b0e

Browse files
committed
Remove deprecated usage of integer display width
1 parent 8fe6c88 commit 32c3b0e

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

inc/config.class.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,25 @@ static function install(Migration $migration) {
240240

241241
if (!$DB->tableExists($table)) {
242242
$query = "CREATE TABLE `".$table."` (
243-
`id` int(11) NOT NULL AUTO_INCREMENT,
243+
`id` int NOT NULL AUTO_INCREMENT,
244244
`host` varchar(255) NOT NULL default '',
245245
`url` varchar(255) NOT NULL default '',
246246
`login` varchar(255) NOT NULL default '',
247247
`pwd` varchar(255) NOT NULL default '',
248248
`champsUrlGlpi` varchar(100) NOT NULL default '',
249249
`champsGlpi` varchar(100) NOT NULL default '',
250-
`enable_assign` int(3) NOT NULL default 0,
251-
`neutralize_escalation` int(3) NOT NULL default 0,
252-
`status_after_escalation` int(3) NOT NULL default 0,
253-
`show_option_delete` int(3) NOT NULL default 0,
254-
`doc_categorie` int(3) NOT NULL default 0,
250+
`enable_assign` int NOT NULL default 0,
251+
`neutralize_escalation` int NOT NULL default 0,
252+
`status_after_escalation` int NOT NULL default 0,
253+
`show_option_delete` int NOT NULL default 0,
254+
`doc_categorie` int NOT NULL default 0,
255255
`itemType` varchar(255) NOT NULL default '',
256256
`etatMantis` varchar(100) NOT NULL default '',
257-
`solutiontypes_id` int(11) NOT NULL DEFAULT 0,
258-
`users_id` int(11) NOT NULL DEFAULT 0,
259-
`check_ssl` int(1) NOT NULL DEFAULT 0,
260-
`use_proxy` int(1) NOT NULL DEFAULT 0,
261-
`is_password_sodium_encrypted` int(1) NOT NULL DEFAULT 1,
257+
`solutiontypes_id` int NOT NULL DEFAULT 0,
258+
`users_id` int NOT NULL DEFAULT 0,
259+
`check_ssl` int NOT NULL DEFAULT 0,
260+
`use_proxy` int NOT NULL DEFAULT 0,
261+
`is_password_sodium_encrypted` int NOT NULL DEFAULT 1,
262262
PRIMARY KEY (`id`)
263263
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
264264
$DB->query($query) or die($DB->error());
@@ -304,7 +304,7 @@ static function install(Migration $migration) {
304304
)
305305
);
306306
}
307-
$migration->addField($table, "is_password_sodium_encrypted", "INT(1) NOT NULL DEFAULT 1");
307+
$migration->addField($table, "is_password_sodium_encrypted", "INT NOT NULL DEFAULT 1");
308308
}
309309
}
310310

inc/mantis.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ static function install(Migration $migration) {
104104
if (!$DB->tableExists($table)) {
105105

106106
$query = "CREATE TABLE `".$table."` (
107-
`id` int(11) NOT NULL AUTO_INCREMENT,
108-
`items_id` int(11) NOT NULL,
109-
`idMantis` int(11) NOT NULL,
107+
`id` int NOT NULL AUTO_INCREMENT,
108+
`items_id` int NOT NULL,
109+
`idMantis` int NOT NULL,
110110
`dateEscalade` date NOT NULL,
111111
`itemtype` varchar(255) NOT NULL,
112-
`user` int(11) NOT NULL,
112+
`user` int NOT NULL,
113113
PRIMARY KEY (`id`)
114114
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
115115
$DB->query($query) or die($DB->error());

inc/userpref.class.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ static function install($migration) {
3939

4040
if (!$DB->tableExists("glpi_plugin_mantis_userprefs")) {
4141
$query = "CREATE TABLE `glpi_plugin_mantis_userprefs` (
42-
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
43-
`users_id` int(11) NOT NULL ,
44-
`followTask` int(11) NOT NULL default '0',
45-
`followFollow` int(11) NOT NULL default '0',
46-
`followAttachment` int(11) NOT NULL default '0',
47-
`followTitle` int(11) NOT NULL default '0',
48-
`followDescription` int(11) NOT NULL default '0',
49-
`followCategorie` int(11) NOT NULL default '0',
50-
`followLinkedItem` int(11) NOT NULL default '0',
42+
`id` int NOT NULL PRIMARY KEY AUTO_INCREMENT,
43+
`users_id` int NOT NULL ,
44+
`followTask` int NOT NULL default '0',
45+
`followFollow` int NOT NULL default '0',
46+
`followAttachment` int NOT NULL default '0',
47+
`followTitle` int NOT NULL default '0',
48+
`followDescription` int NOT NULL default '0',
49+
`followCategorie` int NOT NULL default '0',
50+
`followLinkedItem` int NOT NULL default '0',
5151
UNIQUE KEY (`users_id`))";
5252
$DB->query($query) or die($DB->error());
5353
}

0 commit comments

Comments
 (0)