From 682fca8a0508a510778b2511710143eb98170527 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Fri, 8 Sep 2017 14:03:30 +0700 Subject: [PATCH] Changed database structure --- App/Models/Access.php | 4 ++-- App/Models/Post.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/App/Models/Access.php b/App/Models/Access.php index 160fe72..4b38827 100644 --- a/App/Models/Access.php +++ b/App/Models/Access.php @@ -14,8 +14,8 @@ class Access extends \Core\Model 'salt char(23) NOT NULL', 'full_name varchar(50) NOT NULL', 'registered_at date NOT NULL DEFAULT CURRENT_TIMESTAMP', - 'privilage int(3) NOT NULL DEFAULT 0', - 'status tinyint NOT NULL DEFAULT 0', + 'privilage tinyint(1) NOT NULL DEFAULT 0', + 'status tinyint(1) NOT NULL DEFAULT 0', 'max_user int(1) NOT NULL DEFAULT 5', 'PRIMARY KEY (id)' ] diff --git a/App/Models/Post.php b/App/Models/Post.php index 4670194..d4e99ec 100644 --- a/App/Models/Post.php +++ b/App/Models/Post.php @@ -18,7 +18,7 @@ class Post extends \Core\Model 'edited_at date', 'editor int(3)', 'content varchar(255) NOT NULL', - 'status tinyint NOT NULL DEFAULT 1', + 'status tinyint(1) NOT NULL DEFAULT 1', 'PRIMARY KEY (id)' ] ); @@ -29,7 +29,7 @@ class Post extends \Core\Model [ 'id int(3) NOT NULL AUTO_INCREMENT', 'category varchar(20) NOT NULL', - 'status tinyint NOT NULL DEFAULT 1', + 'status tinyint(1) NOT NULL DEFAULT 1', 'PRIMARY KEY (id)' ] );