From: jfd Date: Mon, 30 Jul 2012 18:52:11 +0000 (+0200) Subject: use CURRENT_TIMESTAMP in default column definitions (sqlite, mysql, postgres and... X-Git-Tag: v4.5.0beta1~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3aff7a298c23837b070507a0644b89a8a5c026be;p=nextcloud-server.git 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) --- diff --git a/apps/calendar/appinfo/database.xml b/apps/calendar/appinfo/database.xml index 5a3ad32dc24..f60319ad432 100644 --- a/apps/calendar/appinfo/database.xml +++ b/apps/calendar/appinfo/database.xml @@ -43,14 +43,14 @@ startdate timestamp - 0000-00-00 00:00:00 + CURRENT_TIMESTAMP false enddate timestamp - 0000-00-00 00:00:00 + CURRENT_TIMESTAMP false @@ -72,7 +72,7 @@ calendardata - clob + text false @@ -172,7 +172,7 @@ timezone - clob + text false diff --git a/apps/contacts/appinfo/database.xml b/apps/contacts/appinfo/database.xml index 7c8268d71f5..f83a04b8f47 100644 --- a/apps/contacts/appinfo/database.xml +++ b/apps/contacts/appinfo/database.xml @@ -49,7 +49,7 @@ description - clob + text false @@ -101,7 +101,7 @@ carddata - clob + text false diff --git a/db_structure.xml b/db_structure.xml index 94567b4d539..992d1db4141 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -31,7 +31,7 @@ configvalue - clob + text true @@ -335,7 +335,7 @@ uri - clob + text false @@ -362,7 +362,7 @@ moment timestamp - 0000-00-00 00:00:00 + CURRENT_TIMESTAMP true @@ -392,7 +392,7 @@ info - clob + text true @@ -432,7 +432,7 @@ configvalue - clob + text true @@ -472,7 +472,7 @@ propertyvalue - clob + text true