Skip to content

Commit

Permalink
Added created_date to Tag table
Browse files Browse the repository at this point in the history
  • Loading branch information
reednj committed May 27, 2010
1 parent 7b2942b commit bd814da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/db-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 30, 2010 at 10:09 AM
-- Generation Time: May 27, 2010 at 11:27 AM
-- Server version: 5.0.51
-- PHP Version: 5.2.4-2ubuntu5.10

Expand All @@ -22,6 +22,7 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
CREATE TABLE IF NOT EXISTS `Tag` (
`tag_id` int(11) NOT NULL auto_increment,
`tag_name` varchar(128) character set latin1 NOT NULL,
`created_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`tag_id`),
UNIQUE KEY `tag_name` (`tag_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Expand All @@ -38,5 +39,6 @@ CREATE TABLE IF NOT EXISTS `TagValue` (
`tag_value` double NOT NULL,
`created_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`value_id`),
UNIQUE KEY `tag_id` (`tag_id`,`created_date`)
UNIQUE KEY `tag_id` (`tag_id`,`created_date`),
KEY `created_date` (`created_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

0 comments on commit bd814da

Please sign in to comment.