|
@@ -1,11 +1,12 @@
|
|
|
CREATE TABLE `blog_posts` (
|
|
|
- `post_id` INT NOT NULL AUTO_INCREMENT,
|
|
|
- `post_title` TEXT NULL,
|
|
|
- `post_content` LONGTEXT NULL,
|
|
|
- `post_timestamp` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
- `post_draft` LONGTEXT NULL,
|
|
|
- `post_url` VARCHAR(255) NULL,
|
|
|
- `post_deleted` TINYINT NULL DEFAULT 0,
|
|
|
- `user_id` INT NULL,
|
|
|
+ `post_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `post_title` text,
|
|
|
+ `post_content` longtext,
|
|
|
+ `post_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
+ `post_draft` longtext,
|
|
|
+ `post_url` varchar(255) DEFAULT NULL,
|
|
|
+ `post_deleted` tinyint(4) DEFAULT '0',
|
|
|
+ `user_id` int(11) DEFAULT NULL,
|
|
|
PRIMARY KEY (`post_id`),
|
|
|
- UNIQUE INDEX `post_url_UNIQUE` (`post_url` ASC));
|
|
|
+ UNIQUE KEY `post_url_UNIQUE` (`post_url`)
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|