use CURRENT_TIMESTAMP in default column definitions (sqlite, mysql, postgres and oracle DO understand it), change clob columns to text (clob will give sorting and uniqueness problems and in general is not what we want)

remotes/origin/stable45
jfd 13 years ago committed by Jörn Friedrich Dreyer
parent 727f4357fb
commit 3aff7a298c
  1. 8
      apps/calendar/appinfo/database.xml
  2. 4
      apps/contacts/appinfo/database.xml
  3. 12
      db_structure.xml

@ -43,14 +43,14 @@
<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>
@ -172,7 +172,7 @@
<field>
<name>timezone</name>
<type>clob</type>
<type>text</type>
<notnull>false</notnull>
</field>

@ -49,7 +49,7 @@
<field>
<name>description</name>
<type>clob</type>
<type>text</type>
<notnull>false</notnull>
</field>
@ -101,7 +101,7 @@
<field>
<name>carddata</name>
<type>clob</type>
<type>text</type>
<notnull>false</notnull>
</field>

@ -31,7 +31,7 @@
<field>
<name>configvalue</name>
<type>clob</type>
<type>text</type>
<notnull>true</notnull>
</field>
@ -335,7 +335,7 @@
<field>
<name>uri</name>
<type>clob</type>
<type>text</type>
<notnull>false</notnull>
</field>
@ -362,7 +362,7 @@
<field>
<name>moment</name>
<type>timestamp</type>
<default>0000-00-00 00:00:00</default>
<default>CURRENT_TIMESTAMP</default>
<notnull>true</notnull>
</field>
@ -392,7 +392,7 @@
<field>
<name>info</name>
<type>clob</type>
<type>text</type>
<notnull>true</notnull>
</field>
@ -432,7 +432,7 @@
<field>
<name>configvalue</name>
<type>clob</type>
<type>text</type>
<notnull>true</notnull>
</field>
@ -472,7 +472,7 @@
<field>
<name>propertyvalue</name>
<type>clob</type>
<type>text</type>
<notnull>true</notnull>
</field>

Loading…
Cancel
Save