Skip to content

Commit

Permalink
added unique ID to posts table
Browse files Browse the repository at this point in the history
'posts' table now has a simple auto_increment primary key, so that
individual posts can be linked-to for purposes of editing, permalinking,
deleting, etc.
  • Loading branch information
gbenison committed Feb 7, 2012
1 parent 867c2e5 commit ead347b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion database-setup.sql
Expand Up @@ -4,6 +4,10 @@
CREATE DATABASE IF NOT EXISTS schwordpress;
USE schwordpress;
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`timestamp` datetime DEFAULT NULL,
`content` text);
`content` text,
PRIMARY KEY (`id`));


0 comments on commit ead347b

Please sign in to comment.