From 9d2e452779b92db6d95ce18e400537cae4f572d2 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 25 Jan 2022 02:26:21 +0400 Subject: [PATCH] feat: rename tags to deployments in collections.old.php --- app/config/collections.old.php | 14 +++++++------- src/Appwrite/Database/Database.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/config/collections.old.php b/app/config/collections.old.php index 4b869d1160..28f3b09f2f 100644 --- a/app/config/collections.old.php +++ b/app/config/collections.old.php @@ -1322,8 +1322,8 @@ $collections = [ ], [ '$collection' => Database::SYSTEM_COLLECTION_RULES, - 'label' => 'Tag', - 'key' => 'tag', + 'label' => 'Deployment', + 'key' => 'deployment', 'type' => Database::SYSTEM_VAR_TYPE_KEY, 'default' => '', 'required' => false, @@ -1386,11 +1386,11 @@ $collections = [ ], ], ], - Database::SYSTEM_COLLECTION_TAGS => [ + Database::SYSTEM_COLLECTION_DEPLOYMENTS => [ '$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS, - '$id' => Database::SYSTEM_COLLECTION_TAGS, + '$id' => Database::SYSTEM_COLLECTION_DEPLOYMENTS, '$permissions' => ['read' => ['role:all']], - 'name' => 'Tags', + 'name' => 'Deployments', 'structure' => true, 'rules' => [ [ @@ -1467,8 +1467,8 @@ $collections = [ ], [ '$collection' => Database::SYSTEM_COLLECTION_RULES, - 'label' => 'Tag ID', - 'key' => 'tagId', + 'label' => 'Deployment ID', + 'key' => 'deploymentId', 'type' => Database::SYSTEM_VAR_TYPE_KEY, 'default' => '', 'required' => false, diff --git a/src/Appwrite/Database/Database.php b/src/Appwrite/Database/Database.php index 00225dcacc..a953ef443d 100644 --- a/src/Appwrite/Database/Database.php +++ b/src/Appwrite/Database/Database.php @@ -39,7 +39,7 @@ class Database // Functions const SYSTEM_COLLECTION_FUNCTIONS = 'functions'; - const SYSTEM_COLLECTION_TAGS = 'tags'; + const SYSTEM_COLLECTION_DEPLOYMENTS = 'deployments'; const SYSTEM_COLLECTION_EXECUTIONS = 'executions'; // Realtime