@@ -173,7 +173,7 @@ private function ext_createtable() {
173173 `fk_user` int(10) NOT NULL COMMENT 'User Relation',
174174 `creation` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation Date',
175175 `modification` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modification Date',
176- PRIMARY KEY (`id`), CONSTRAINT " .$ this ->table_ext ."_unique UNIQUE (`fk_user`,`fk_group` )); " ); }}
176+ PRIMARY KEY (`id`), CONSTRAINT " .$ this ->table_ext ."_unique UNIQUE (`fk_user`)); " ); }}
177177 public function extrafield_add_field ($ string ) { $ x = $ this ->mysql ->log_status (); $ this ->mysql ->log_disable (); $ y = $ this ->mysql ->query ("ALTER TABLE ` " .$ this ->table_ext ."` ADD COLUMN " .$ string ." ; " ); if ($ x ) {$ this ->mysql ->log_enable ();}return $ y ; }
178178 public function extrafield_del_field ($ fieldname ) { $ x = $ this ->mysql ->log_status (); $ this ->mysql ->log_disable (); $ y = $ this ->mysql ->query ("ALTER TABLE ` " .$ this ->table_ext ."` DROP COLUMN " .$ fieldname ." ; " ); if ($ x ) {$ this ->mysql ->log_enable ();} return $ y ; }
179179 public function extrafield_get ($ id ) {
@@ -470,6 +470,7 @@ private function create_table($initial = false, $initialpass = "changeme", $init
470470 `user_2fa` text DEFAULT NULL COMMENT 'Users 2FA key',
471471 `user_initial` int(1) DEFAULT 0 COMMENT '1 if this user is initial created user',
472472 `user_rank` int(9) NULL DEFAULT NULL COMMENT 'Users Rank',
473+ `user_status` int(9) NULL DEFAULT NULL COMMENT 'User Status',
473474 `user_confirmed` tinyint(1) DEFAULT '0' COMMENT 'User Activation Status',
474475 `user_disabled` int(1) DEFAULT 0 COMMENT '1 - User is Disabled',
475476 `user_blocked` tinyint(1) DEFAULT '0' COMMENT 'User Blocked/Disabled Status',
0 commit comments