1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00

PR review changes

This commit is contained in:
Matej Bačo 2022-12-20 12:48:11 +01:00
parent fdd9a1caf3
commit b014eda788
2 changed files with 25 additions and 4 deletions

View file

@ -657,7 +657,7 @@ services:
hostname: exc1
<<: *x-logging
stop_signal: SIGINT
image: meldiron/appwrite-executor:latest
image: openruntimes/executor:0.2.0
networks:
- appwrite
- runtimes

View file

@ -63,6 +63,7 @@ class V17 extends Migration
* Create 'size' attribute
*/
$this->createAttributeFromCollection($this->projectDB, $id, 'size');
$this->projectDB->deleteCachedCollection($id);
} catch (\Throwable $th) {
Console::warning("'size' from {$id}: {$th->getMessage()}");
}
@ -71,10 +72,30 @@ class V17 extends Migration
/**
* Delete 'endTime' attribute (use startTime+duration if needed)
*/
$this->projectDB->deleteAttribute($id, 'startTime');
$this->createAttributeFromCollection($this->projectDB, $id, 'startTime');
$this->projectDB->deleteAttribute($id, 'endTime');
$this->projectDB->deleteCachedCollection($id);
} catch (\Throwable $th) {
Console::warning("'startTime' from {$id}: {$th->getMessage()}");
Console::warning("'endTime' from {$id}: {$th->getMessage()}");
}
try {
/**
* Rename 'outputPath' to 'path'
*/
$this->projectDB->renameAttribute($id, 'outputPath', 'path');
$this->projectDB->deleteCachedCollection($id);
} catch (\Throwable $th) {
Console::warning("'path' from {$id}: {$th->getMessage()}");
}
try {
/**
* Create 'size'
*/
$this->createAttributeFromCollection($this->projectDB, $id, 'size');
$this->projectDB->deleteCachedCollection($id);
} catch (\Throwable $th) {
Console::warning("'size' from {$id}: {$th->getMessage()}");
}
break;
default: