Fixed setup error

Fixed db structure
This commit is contained in:
Furentes
2019-05-14 12:17:00 +02:00
parent df4ba337d8
commit eaa735da68
2 changed files with 6 additions and 5 deletions

View File

@ -17,10 +17,11 @@ CREATE TABLE IF NOT EXISTS `users` (
--
CREATE TABLE `posts` (
`id` int(11) UNSIGNED NOT NULL,
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`user` int(11) UNSIGNED NOT NULL,
`title` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
`text` longtext CHARACTER SET utf8mb4 NOT NULL,
`created_at` int(10) UNSIGNED NOT NULL,
`updated_at` int(10) UNSIGNED DEFAULT NULL
`updated_at` int(10) UNSIGNED DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;