mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
fix: add more comments
This commit is contained in:
parent
a9ba7331c4
commit
70909bad0c
1 changed files with 15 additions and 1 deletions
|
|
@ -72,6 +72,10 @@ class V12 extends Migration
|
|||
*/
|
||||
foreach ($this->collections as $collection) {
|
||||
$id = $collection['$id'];
|
||||
|
||||
/**
|
||||
* Skip new tables that don't exists on old schema.
|
||||
*/
|
||||
if (in_array($id, ['buckets', 'deployments', 'builds'])) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -99,6 +103,9 @@ class V12 extends Migration
|
|||
foreach ($this->collections as $collection) {
|
||||
$id = $collection['$id'];
|
||||
|
||||
/**
|
||||
* Skip new tables that don't exists on old schema.
|
||||
*/
|
||||
if (in_array($id, ['buckets', 'deployments', 'builds'])) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -260,7 +267,8 @@ class V12 extends Migration
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Migrates permissions to dedicated table.
|
||||
*
|
||||
* @param \Utopia\Database\Document $document
|
||||
* @param string $internalId
|
||||
* @return void
|
||||
|
|
@ -329,6 +337,9 @@ class V12 extends Migration
|
|||
INDEX `_index2` (`_permission`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;")->execute();
|
||||
|
||||
/**
|
||||
* Update metadata table.
|
||||
*/
|
||||
$this->pdo->prepare("UPDATE _{$projectId}__metadata
|
||||
SET
|
||||
_uid = 'collection_{$internalId}',
|
||||
|
|
@ -387,6 +398,9 @@ class V12 extends Migration
|
|||
foreach ($this->collections as $collection) {
|
||||
$id = $collection['$id'];
|
||||
|
||||
/**
|
||||
* Skip new tables that don't exists on old schema.
|
||||
*/
|
||||
if (in_array($id, ['buckets', 'deployments', 'builds'])) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue