Convert from timestamp to datetime. Datetime is consistent between mysql 4.0x and newer
versions and is faster for date/time computations. Modify object creation methods to specify any time fields that were previously updated with timestamp properties.
This commit is contained in:
@@ -6,13 +6,13 @@ drop table if exists distributions;
|
||||
* Distributions table.
|
||||
*/
|
||||
create table distributions (
|
||||
distributionId int not null auto_increment,
|
||||
name varchar(255) default NULL,
|
||||
url varchar(255) default NULL,
|
||||
submitTime timestamp(14) NOT NULL,
|
||||
submitterId int(11) NOT NULL default '0',
|
||||
queued enum('true','false','rejected') NOT NULL default 'false',
|
||||
distributionId int not null auto_increment,
|
||||
name varchar(255) default NULL,
|
||||
url varchar(255) default NULL,
|
||||
submitTime datetime NOT NULL,
|
||||
submitterId int(11) NOT NULL default '0',
|
||||
queued enum('true','false','rejected') NOT NULL default 'false',
|
||||
key(distributionId),
|
||||
index(name)
|
||||
index(name)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user