Fix database issue

This commit is contained in:
2017-09-13 11:19:35 +07:00
parent 41a8d82464
commit 3d2345c752
2 changed files with 5 additions and 5 deletions

View File

@@ -10,11 +10,11 @@ class Post extends \Core\Model
[
'id int(3) NOT NULL AUTO_INCREMENT',
'category int(3) NOT NULL',
'created_at date NOT NULL DEFAULT CURRENT_TIMESTAMP',
'valid_at date NOT NULL DEFAULT CURRENT_TIMESTAMP',
'expired_at date NOT NULL',
'created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
'valid_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP',
'expired_at timestamp NOT NULL',
'creator int(3) NOT NULL',
'edited_at date',
'edited_at timestamp',
'editor int(3)',
'content varchar(255) NOT NULL',
'status tinyint(1) NOT NULL DEFAULT 1',