Changed field type in db to get negative numbers. Ticket #120
This commit is contained in:
parent
8bc12f02d0
commit
f02827d235
|
@ -185,7 +185,7 @@ ALTER TABLE tevent_filter ADD COLUMN `date_to` date DEFAULT NULL;
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
ALTER TABLE tusuario ADD COLUMN `id_filter` int(10) unsigned NULL default NULL;
|
ALTER TABLE tusuario ADD COLUMN `id_filter` int(10) unsigned NULL default NULL;
|
||||||
ALTER TABLE tusuario ADD COLUMN CONSTRAINT `fk_id_filter` FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL;
|
ALTER TABLE tusuario ADD COLUMN CONSTRAINT `fk_id_filter` FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL;
|
||||||
ALTER TABLE tusuario ADD COLUMN `session_time` int(10) unsigned NOT NULL default '0';
|
ALTER TABLE tusuario ADD COLUMN `session_time` int(10) signed NOT NULL default '0';
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tagente_modulo`
|
-- Table `tagente_modulo`
|
||||||
|
|
|
@ -107,7 +107,7 @@ ALTER TABLE tevent_filter ADD COLUMN date_to date DEFAULT NULL;
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
ALTER TABLE tusuario ADD COLUMN id_filter int(10) unsigned default NULL;
|
ALTER TABLE tusuario ADD COLUMN id_filter int(10) unsigned default NULL;
|
||||||
ALTER TABLE tusuario ADD COLUMN CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL;
|
ALTER TABLE tusuario ADD COLUMN CONSTRAINT fk_id_filter FOREIGN KEY (id_filter) REFERENCES tevent_filter(id_filter) ON DELETE SET NULL;
|
||||||
ALTER TABLE tusuario ADD COLUMN session_time int(10) NOT NULL default '0';
|
ALTER TABLE tusuario ADD COLUMN session_time INTEGER NOT NULL default '0';
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tagente_modulo`
|
-- Table `tagente_modulo`
|
||||||
|
|
|
@ -176,7 +176,7 @@ if ($create_user) {
|
||||||
}
|
}
|
||||||
$values["not_login"] = (bool)get_parameter ('not_login', false);
|
$values["not_login"] = (bool)get_parameter ('not_login', false);
|
||||||
$values["strict_acl"] = (bool)get_parameter ('strict_acl', false);
|
$values["strict_acl"] = (bool)get_parameter ('strict_acl', false);
|
||||||
$values["session_time"] = get_parameter('session_time', 0);
|
$values["session_time"] = (int)get_parameter('session_time', 0);
|
||||||
|
|
||||||
if ($id == '') {
|
if ($id == '') {
|
||||||
ui_print_error_message (__('User ID cannot be empty'));
|
ui_print_error_message (__('User ID cannot be empty'));
|
||||||
|
@ -280,7 +280,7 @@ if ($update_user) {
|
||||||
}
|
}
|
||||||
$values["not_login"] = (bool)get_parameter ('not_login', false);
|
$values["not_login"] = (bool)get_parameter ('not_login', false);
|
||||||
$values["strict_acl"] = (bool)get_parameter ('strict_acl', false);
|
$values["strict_acl"] = (bool)get_parameter ('strict_acl', false);
|
||||||
$values["session_time"] = get_parameter('session_time', 0);
|
$values["session_time"] = (int)get_parameter('session_time', 0);
|
||||||
|
|
||||||
$res1 = update_user ($id, $values);
|
$res1 = update_user ($id, $values);
|
||||||
|
|
||||||
|
|
|
@ -1155,7 +1155,7 @@ CREATE TABLE tusuario (
|
||||||
metaconsole_assigned_server NUMBER(10, 0) DEFAULT 0,
|
metaconsole_assigned_server NUMBER(10, 0) DEFAULT 0,
|
||||||
metaconsole_access_node NUMBER(10, 0) DEFAULT 0,
|
metaconsole_access_node NUMBER(10, 0) DEFAULT 0,
|
||||||
strict_acl NUMBER(5,0) DEFAULT 0,
|
strict_acl NUMBER(5,0) DEFAULT 0,
|
||||||
session_time NUMBER(10,0) DEFAULT 0,
|
session_time INTEGER DEFAULT 0,
|
||||||
CONSTRAINT t_usuario_metaconsole_acc_cons CHECK (metaconsole_access IN ('basic','advanced'))
|
CONSTRAINT t_usuario_metaconsole_acc_cons CHECK (metaconsole_access IN ('basic','advanced'))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1068,7 +1068,7 @@ CREATE TABLE IF NOT EXISTS `tusuario` (
|
||||||
`metaconsole_access_node` tinyint(1) unsigned NOT NULL default 0,
|
`metaconsole_access_node` tinyint(1) unsigned NOT NULL default 0,
|
||||||
`strict_acl` tinyint(1) unsigned NOT NULL DEFAULT 0,
|
`strict_acl` tinyint(1) unsigned NOT NULL DEFAULT 0,
|
||||||
`id_filter` int(10) unsigned NULL default NULL,
|
`id_filter` int(10) unsigned NULL default NULL,
|
||||||
`session_time` int(10) unsigned NOT NULL default 0,
|
`session_time` int(10) signed NOT NULL default 0,
|
||||||
CONSTRAINT `fk_filter_id` FOREIGN KEY (`id_filter`) REFERENCES tevent_filter (`id_filter`) ON DELETE SET NULL,
|
CONSTRAINT `fk_filter_id` FOREIGN KEY (`id_filter`) REFERENCES tevent_filter (`id_filter`) ON DELETE SET NULL,
|
||||||
UNIQUE KEY `id_user` (`id_user`)
|
UNIQUE KEY `id_user` (`id_user`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
Loading…
Reference in New Issue