Fixed timestamp default value, and igonre Config.php but still update Config.php.example
This commit is contained in:
parent
0b1c3f3370
commit
fa28202a2c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
App/Config.php
|
@ -14,7 +14,7 @@ class Post extends \Core\Model
|
|||||||
'valid_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
'valid_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
||||||
'expired_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
'expired_at timestamp NOT NULL DEFAULT "00-00-00 00:00:00"',
|
||||||
'creator int(3) NOT NULL',
|
'creator int(3) NOT NULL',
|
||||||
'edited_at timestamp',
|
'edited_at timestamp DEFAULT 0',
|
||||||
'editor int(3)',
|
'editor int(3)',
|
||||||
'content varchar(255) NOT NULL',
|
'content varchar(255) NOT NULL',
|
||||||
'status tinyint(1) NOT NULL DEFAULT 1',
|
'status tinyint(1) NOT NULL DEFAULT 1',
|
||||||
|
@ -28,7 +28,7 @@ CREATE TABLE `pengumuman` (
|
|||||||
`valid_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`valid_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`expired_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`expired_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`creator` int(3) NOT NULL,
|
`creator` int(3) NOT NULL,
|
||||||
`edited_at` timestamp NULL DEFAULT NULL,
|
`edited_at` timestamp DEFAULT 0,
|
||||||
`editor` int(3) DEFAULT NULL,
|
`editor` int(3) DEFAULT NULL,
|
||||||
`content` varchar(255) NOT NULL,
|
`content` varchar(255) NOT NULL,
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user