1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Merge pull request #5532 from appwrite/migration-attribute

migration bucketInternalId
This commit is contained in:
Christy Jacob 2023-05-16 13:00:27 +05:30 committed by GitHub
commit 3a2134f4e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,18 @@ class V17 extends Migration
Console::warning("'mimeType' from {$id}: {$th->getMessage()}");
}
try {
/**
* Create 'bucketInternalId' attribute
*/
$this->createAttributeFromCollection($this->projectDB, $id, 'bucketInternalId');
$this->projectDB->deleteCachedCollection($id);
} catch (\Throwable $th) {
Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}");
}
break;
case 'builds':
try {
/**
* Delete 'endTime' attribute (use startTime+duration if needed)