mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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)
This commit is contained in:
parent
727f4357fb
commit
3aff7a298c
3 changed files with 12 additions and 12 deletions
|
|
@ -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…
Reference in a new issue