Browse code

added default value to column 'last_modified' in table 'domain' (this change is required by serweb)

Karel Kozlik authored on 10/04/2006 13:24:29
Showing 4 changed files
... ...
@@ -62,6 +62,7 @@
62 62
 	<name>last_modified</name>
63 63
 	<type>datetime</type>
64 64
 	<my:type>timestamp</my:type>
65
+	<default>1970-01-01 00:00:00</default>
65 66
 	<description>
66 67
 	    Date and time of the last modification of the domain.
67 68
 	</description>
... ...
@@ -178,7 +178,7 @@ CREATE TABLE user_attrs (
178 178
 CREATE TABLE domain (
179 179
     did VARCHAR(64) NOT NULL,
180 180
     domain VARCHAR(128) NOT NULL,
181
-    last_modified timestamp NOT NULL,
181
+    last_modified timestamp NOT NULL DEFAULT '1970-01-01 00:00:00',
182 182
     flags INT UNSIGNED NOT NULL DEFAULT '0',
183 183
     UNIQUE KEY domain_idx (domain)
184 184
 );
... ...
@@ -173,7 +173,7 @@ CREATE TABLE user_attrs (
173 173
 CREATE TABLE domain (
174 174
     did string(64) NOT NULL,
175 175
     domain string(128) NOT NULL,
176
-    last_modified datetime NOT NULL,
176
+    last_modified datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
177 177
     flags int NOT NULL DEFAULT '0',
178 178
     domain_idx UNIQUE (domain, )
179 179
 );
... ...
@@ -182,7 +182,7 @@ CREATE TABLE user_attrs (
182 182
 CREATE TABLE domain (
183 183
     did VARCHAR(64) NOT NULL,
184 184
     domain VARCHAR(128) NOT NULL,
185
-    last_modified TIMESTAMP NOT NULL,
185
+    last_modified TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:00',
186 186
     flags INTEGER NOT NULL DEFAULT '0',
187 187
     CONSTRAINT domain_idx UNIQUE (domain)
188 188
 );