mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
fix: teams total sum renaming
This commit is contained in:
parent
c91abb5d60
commit
7848f76f98
1 changed files with 12 additions and 7 deletions
|
|
@ -213,6 +213,18 @@ class V12 extends Migration
|
|||
*/
|
||||
$this->createCollection('builds');
|
||||
|
||||
break;
|
||||
|
||||
case 'functions':
|
||||
try {
|
||||
/**
|
||||
* Rename tag to deployment
|
||||
*/
|
||||
$this->projectDB->renameAttribute($id, 'sum', 'total');
|
||||
} catch (\Throwable $th) {
|
||||
Console::warning("'total' from {$id}: {$th->getMessage()}");
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
usleep(100000);
|
||||
|
|
@ -495,13 +507,6 @@ class V12 extends Migration
|
|||
break;
|
||||
|
||||
case 'teams':
|
||||
/**
|
||||
* Rename sum to total
|
||||
*/
|
||||
if (empty($document->getAttribute('total'))) {
|
||||
$document->setAttribute('total', $document->getAttribute('sum'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Populate search string from Migration to 0.12.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue