Changed database structure
This commit is contained in:
parent
d4dce8e460
commit
682fca8a05
@ -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)'
|
||||
]
|
||||
|
@ -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)'
|
||||
]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user