]> source.dussan.org Git - nextcloud-server.git/commitdiff
use CURRENT_TIMESTAMP in default column definitions (sqlite, mysql, postgres and...
authorjfd <jfd@underverse>
Mon, 30 Jul 2012 18:52:11 +0000 (20:52 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 31 Jul 2012 17:00:54 +0000 (19:00 +0200)
apps/calendar/appinfo/database.xml
apps/contacts/appinfo/database.xml
db_structure.xml

index 5a3ad32dc243d274ecd57629195b196452683770..f60319ad432993d81abb3124e16b26a0d3bb647d 100644 (file)
    <field>
     <name>startdate</name>
     <type>timestamp</type>
-    <default>0000-00-00 00:00:00</default>
+    <default>CURRENT_TIMESTAMP</default>
     <notnull>false</notnull>
    </field>
 
    <field>
     <name>enddate</name>
     <type>timestamp</type>
-    <default>0000-00-00 00:00:00</default>
+    <default>CURRENT_TIMESTAMP</default>
     <notnull>false</notnull>
    </field>
 
@@ -72,7 +72,7 @@
 
    <field>
     <name>calendardata</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
    </field>
 
 
    <field>
     <name>timezone</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
    </field>
 
index 7c8268d71f53430c61b45ab6a27d2e34df035a44..f83a04b8f4777f628e8a563044ba1c649457520e 100644 (file)
@@ -49,7 +49,7 @@
 
    <field>
     <name>description</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
    </field>
 
 
    <field>
     <name>carddata</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
    </field>
 
index 94567b4d53928c31a4ba503baf2c10d3211a88dc..992d1db41412d43097e9d15af35d02fffb8ec508 100644 (file)
@@ -31,7 +31,7 @@
 
    <field>
     <name>configvalue</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>true</notnull>
    </field>
 
 
    <field>
     <name>uri</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
    </field>
 
    <field>
     <name>moment</name>
     <type>timestamp</type>
-    <default>0000-00-00 00:00:00</default>
+    <default>CURRENT_TIMESTAMP</default>
     <notnull>true</notnull>
    </field>
 
 
    <field>
     <name>info</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>true</notnull>
    </field>
 
 
    <field>
     <name>configvalue</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>true</notnull>
    </field>
 
 
    <field>
     <name>propertyvalue</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>true</notnull>
    </field>