Permalink
Browse files

added unique ID to posts table

'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 ead347b49e727c534f03105b9fda57cfbe0c4457
Showing with 5 additions and 1 deletion.
  1. +5 −1 database-setup.sql
View
@@ -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.