1
0
mirror of https://github.com/writeas/nerds synced 2018-07-20 12:35:21 +00:00

Add database schema

This commit is contained in:
Matt Baer 2015-03-14 15:49:13 -04:00
parent c98d5d5b8b
commit 9dc430ade8

8
init_mysql.sql Normal file
View File

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `posts` (
`id` char(16) NOT NULL,
`modify_token` char(32) DEFAULT NULL,
`text_appearance` char(4) NOT NULL DEFAULT 'norm',
`last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;