From e45a2c0ef00adebf67f2f80d1a68aef07c109cff Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Tue, 9 Jul 2024 19:16:04 +0900 Subject: [PATCH] Fix Migration Errors subQuery --- app/config/collections.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index 693c40f45c..91a44dcc4f 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -4121,7 +4121,8 @@ $projectCollections = array_merge([ 'size' => 65535, 'signed' => true, 'required' => false, - 'array' => true, + 'default' => '', + 'array' => false, 'filters' => ['subQueryMigrationErrors'], ], [ @@ -4262,6 +4263,13 @@ $projectCollections = array_merge([ ], ], 'indexes' => [ + [ + '$id' => '_key_migrationId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['migrationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], [ '$id' => '_key_migrationInternalId', 'type' => Database::INDEX_KEY,