Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit ac008ef

Browse files
author
Julien Jomier
committed
BUG: Dates cannot be NULL
1 parent cdc0f17 commit ac008ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sql/mysql/3.0 beta.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS `bitstream` (
6060
`checksum` varchar(64) NOT NULL,
6161
`path` varchar(512) NOT NULL,
6262
`assetstore_id` int(11) NOT NULL,
63-
`date` timestamp NULL DEFAULT NULL ,
63+
`date` timestamp NOT NULL,
6464
PRIMARY KEY (`bitstream_id`),
6565
KEY `itemrevision_id` (`itemrevision_id`)
6666
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=680 ;
@@ -100,7 +100,7 @@ CREATE TABLE IF NOT EXISTS `folder` (
100100
`parent_id` bigint(20) NOT NULL DEFAULT '0',
101101
`name` varchar(255) NOT NULL,
102102
`description` text NOT NULL,
103-
`date` timestamp NULL DEFAULT NULL ,
103+
`date` timestamp NOT NULL,
104104
PRIMARY KEY (`folder_id`),
105105
KEY `parent_id` (`parent_id`)
106106
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Describes a directory' AUTO_INCREMENT=23 ;
@@ -155,7 +155,7 @@ INSERT INTO `group` (group_id,community_id,name) VALUES (0,0,'Anonymous');
155155
CREATE TABLE IF NOT EXISTS `item` (
156156
`item_id` int(11) NOT NULL AUTO_INCREMENT,
157157
`name` varchar(250) NOT NULL,
158-
`date` timestamp NULL DEFAULT NULL ,
158+
`date` timestamp NOT NULL,
159159
`description` varchar(20) NOT NULL,
160160
`type` int(11) NOT NULL,
161161
`thumbnail` varchar(255) NOT NULL,
@@ -222,7 +222,7 @@ CREATE TABLE IF NOT EXISTS `itemrevision` (
222222
`itemrevision_id` int(11) NOT NULL AUTO_INCREMENT,
223223
`item_id` bigint(20) NOT NULL,
224224
`revision` int(11) NOT NULL,
225-
`date` timestamp NULL DEFAULT NULL ,
225+
`date` timestamp NOT NULL,
226226
`changes` text NOT NULL,
227227
`user_id` int(11) NOT NULL,
228228
PRIMARY KEY (`itemrevision_id`),
@@ -350,7 +350,7 @@ CREATE TABLE IF NOT EXISTS `user2group` (
350350

351351
CREATE TABLE IF NOT EXISTS `feed` (
352352
`feed_id` bigint(20) NOT NULL AUTO_INCREMENT,
353-
`date` timestamp NULL DEFAULT NULL,
353+
`date` timestamp NOT NULL,
354354
`user_id` bigint(20) NOT NULL,
355355
`type` int NOT NULL,
356356
`ressource` varchar(255) NOT NULL,

0 commit comments

Comments
 (0)