From 21f191b632d1ec4c0ec11162af3748ce1cb61c10 Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Fri, 16 May 2025 21:21:08 +0200 Subject: [PATCH 1/3] Minor change to firstoccurence column constraint --- Core/Resources/Db/PgSQL/db.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Resources/Db/PgSQL/db.sql b/Core/Resources/Db/PgSQL/db.sql index 7335dbb2..70e5eac8 100644 --- a/Core/Resources/Db/PgSQL/db.sql +++ b/Core/Resources/Db/PgSQL/db.sql @@ -37,7 +37,7 @@ CREATE TABLE calendarobjects ( etag TEXT, size INT CHECK (size > 0) NOT NULL, componenttype TEXT, - firstoccurence INT CHECK (firstoccurence > 0), + firstoccurence INT CHECK (firstoccurence >= 0), lastoccurence INT CHECK (lastoccurence > 0), uid TEXT ); From 92a8d4886aa7089537dc0d02050398e52d49cde3 Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Sun, 29 Mar 2026 10:46:36 +0200 Subject: [PATCH 2/3] #1343: Removing constraint checks --- Core/Resources/Db/PgSQL/db.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Resources/Db/PgSQL/db.sql b/Core/Resources/Db/PgSQL/db.sql index 70e5eac8..e9237c49 100644 --- a/Core/Resources/Db/PgSQL/db.sql +++ b/Core/Resources/Db/PgSQL/db.sql @@ -37,8 +37,8 @@ CREATE TABLE calendarobjects ( etag TEXT, size INT CHECK (size > 0) NOT NULL, componenttype TEXT, - firstoccurence INT CHECK (firstoccurence >= 0), - lastoccurence INT CHECK (lastoccurence > 0), + firstoccurence INT, + lastoccurence INT, uid TEXT ); From c63f1e9f6516c1a20b16403f3a52a346cf75c227 Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Sat, 2 May 2026 22:54:09 +0200 Subject: [PATCH 3/3] #1343: Allowing signed for firstoccurence and lastoccurence --- Core/Resources/Db/MySQL/db.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Resources/Db/MySQL/db.sql b/Core/Resources/Db/MySQL/db.sql index 51757cda..d7aa87b4 100644 --- a/Core/Resources/Db/MySQL/db.sql +++ b/Core/Resources/Db/MySQL/db.sql @@ -36,8 +36,8 @@ CREATE TABLE calendarobjects ( etag VARBINARY(32), size INT(11) UNSIGNED NOT NULL, componenttype VARBINARY(8), - firstoccurence INT(11) UNSIGNED, - lastoccurence INT(11) UNSIGNED, + firstoccurence INT(11), + lastoccurence INT(11), uid VARBINARY(200), UNIQUE(calendarid, uri) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;