From 40f419663c908598772fecfc3135525f519f93c6 Mon Sep 17 00:00:00 2001 From: prateek banga Date: Wed, 16 Aug 2023 20:28:40 +0530 Subject: [PATCH] removes id attribute from collections config --- app/config/collections.php | 90 -------------------------------------- 1 file changed, 90 deletions(-) diff --git a/app/config/collections.php b/app/config/collections.php index d884e71527..15effbf5ae 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1245,17 +1245,6 @@ $commonCollections = [ '$id' => ID::custom('providers'), 'name' => 'Providers', 'attributes' => [ - [ - '$id' => ID::custom('id'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('name'), 'type' => Database::VAR_STRING, @@ -1302,13 +1291,6 @@ $commonCollections = [ ] ], 'indexes' => [ - [ - '$id' => ID::custom('_key_id'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['id'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_provider'), 'type' => Database::INDEX_KEY, @@ -1331,17 +1313,6 @@ $commonCollections = [ '$id' => ID::custom('messages'), 'name' => 'Messages', 'attributes' => [ - [ - '$id' => ID::custom('id'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('providerId'), 'type' => Database::VAR_STRING, @@ -1454,13 +1425,6 @@ $commonCollections = [ ], ], 'indexes' => [ - [ - '$id' => ID::custom('_key_id'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['id'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_providerId'), 'type' => Database::INDEX_KEY, @@ -1490,17 +1454,6 @@ $commonCollections = [ '$id' => ID::custom('topics'), 'name' => 'Topics', 'attributes' => [ - [ - '$id' => ID::custom('id'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('providerId'), 'type' => Database::VAR_STRING, @@ -1547,13 +1500,6 @@ $commonCollections = [ ], ], 'indexes' => [ - [ - '$id' => ID::custom('_key_id'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['id'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_providerId'), 'type' => Database::INDEX_KEY, @@ -1590,17 +1536,6 @@ $commonCollections = [ '$id' => ID::custom('subscribers'), 'name' => 'Subscribers', 'attributes' => [ - [ - '$id' => ID::custom('id'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('userId'), 'type' => Database::VAR_STRING, @@ -1669,13 +1604,6 @@ $commonCollections = [ ], ], 'indexes' => [ - [ - '$id' => ID::custom('_key_id'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['id'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_userId'), 'type' => Database::INDEX_KEY, @@ -1726,17 +1654,6 @@ $commonCollections = [ '$id' => ID::custom('targets'), 'name' => 'Targets', 'attributes' => [ - [ - '$id' => ID::custom('id'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], [ '$id' => ID::custom('userId'), 'type' => Database::VAR_STRING, @@ -1805,13 +1722,6 @@ $commonCollections = [ ], ], 'indexes' => [ - [ - '$id' => ID::custom('_key_id'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['id'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], [ '$id' => ID::custom('_key_userId'), 'type' => Database::INDEX_KEY,