From c7c8ac83c2cfda883a4ef1a9a4c29ee93dbff82b Mon Sep 17 00:00:00 2001 From: Eike Date: Thu, 4 Feb 2016 19:02:54 +0100 Subject: [PATCH] Changed permission table Fixed All parts of a PRIMARY KEY must be NOT NULL when installing --- user/controllers/YumInstallController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/controllers/YumInstallController.php b/user/controllers/YumInstallController.php index b582690..f851d17 100755 --- a/user/controllers/YumInstallController.php +++ b/user/controllers/YumInstallController.php @@ -301,7 +301,7 @@ public function actionInstall() $sql = "CREATE TABLE IF NOT EXISTS `" . $permissionTable . "` ( `principal_id` int(11) NOT NULL, - `subordinate_id` int(11) NULL, + `subordinate_id` int(11) NOT NULL, `type` enum('user','role') NOT NULL, `action` int(11) unsigned NOT NULL, `subaction` int(11) unsigned NOT NULL,