From 78eb1eec2582a3da01f755049032f6f2c08141c8 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 6 Oct 2024 14:15:31 +0300 Subject: [PATCH 1/3] originalId --- app/config/collections.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/config/collections.php b/app/config/collections.php index 1eb286cf8f..0b47862844 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -6094,6 +6094,17 @@ $dbCollections = [ 'array' => false, 'filters' => [], ], + [ + '$id' => ID::custom('originalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], ], 'indexes' => [ [ From 0a4b86214a6adc172ccd3a30beffe828d1c587f8 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 6 Oct 2024 17:20:10 +0300 Subject: [PATCH 2/3] originalId --- app/config/collections.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/config/collections.php b/app/config/collections.php index 0b47862844..be78b06e92 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -2406,6 +2406,17 @@ $projectCollections = array_merge([ 'array' => false, 'filters' => [], ], + [ + '$id' => ID::custom('originalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], ], 'indexes' => [ [ @@ -6094,17 +6105,6 @@ $dbCollections = [ 'array' => false, 'filters' => [], ], - [ - '$id' => ID::custom('originalId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], ], 'indexes' => [ [ From e87a66c426f9f6b7755d28cf409112f5c6605e5c Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 6 Oct 2024 17:29:35 +0300 Subject: [PATCH 3/3] originalId required false --- app/config/collections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index be78b06e92..cba3100922 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -2413,7 +2413,7 @@ $projectCollections = array_merge([ 'size' => Database::LENGTH_KEY, 'format' => '', 'filters' => [], - 'required' => true, + 'required' => false, 'default' => null, 'array' => false, ],