From 3aff7a298c23837b070507a0644b89a8a5c026be Mon Sep 17 00:00:00 2001 From: jfd Date: Mon, 30 Jul 2012 20:52:11 +0200 Subject: [PATCH] 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) --- apps/calendar/appinfo/database.xml | 8 ++++---- apps/contacts/appinfo/database.xml | 4 ++-- db_structure.xml | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/calendar/appinfo/database.xml b/apps/calendar/appinfo/database.xml index 5a3ad32dc2..f60319ad43 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 7c8268d71f..f83a04b8f4 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 94567b4d53..992d1db414 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