feat: rename tags to deployments in collections.old.php

This commit is contained in:
Christy Jacob 2022-01-25 02:26:21 +04:00
parent 6d3c522834
commit 9d2e452779
2 changed files with 8 additions and 8 deletions

View file

@ -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,

View file

@ -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