mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fix formatting
This commit is contained in:
parent
72e0ccf6d6
commit
ae512cee1c
1 changed files with 37 additions and 27 deletions
|
|
@ -83,35 +83,35 @@ class V17 extends Migration
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/**
|
/**
|
||||||
* Delete 'endTime' attribute (use startTime+duration if needed)
|
* Delete 'endTime' attribute (use startTime+duration if needed)
|
||||||
*/
|
*/
|
||||||
$this->projectDB->deleteAttribute($id, 'endTime');
|
$this->projectDB->deleteAttribute($id, 'endTime');
|
||||||
$this->projectDB->deleteCachedCollection($id);
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning("'endTime' from {$id}: {$th->getMessage()}");
|
Console::warning("'endTime' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/**
|
/**
|
||||||
* Rename 'outputPath' to 'path'
|
* Rename 'outputPath' to 'path'
|
||||||
*/
|
*/
|
||||||
$this->projectDB->renameAttribute($id, 'outputPath', 'path');
|
$this->projectDB->renameAttribute($id, 'outputPath', 'path');
|
||||||
$this->projectDB->deleteCachedCollection($id);
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning("'path' from {$id}: {$th->getMessage()}");
|
Console::warning("'path' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
/**
|
/**
|
||||||
* Create 'deploymentInternalId' attribute
|
* Create 'deploymentInternalId' attribute
|
||||||
*/
|
*/
|
||||||
$this->createAttributeFromCollection($this->projectDB, $id, 'deploymentInternalId');
|
$this->createAttributeFromCollection($this->projectDB, $id, 'deploymentInternalId');
|
||||||
$this->projectDB->deleteCachedCollection($id);
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}");
|
Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'stats':
|
case 'stats':
|
||||||
|
|
@ -158,6 +158,16 @@ class V17 extends Migration
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning("'scheduleInternalId' from {$id}: {$th->getMessage()}");
|
Console::warning("'scheduleInternalId' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
/**
|
||||||
|
* Delete 'scheduleUpdatedAt' attribute
|
||||||
|
*/
|
||||||
|
$this->projectDB->deleteAttribute($id, 'scheduleUpdatedAt');
|
||||||
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
Console::warning("'scheduleUpdatedAt' from {$id}: {$th->getMessage()}");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'deployments':
|
case 'deployments':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue