PR review changes
This commit is contained in:
parent
fdd9a1caf3
commit
b014eda788
2 changed files with 25 additions and 4 deletions
|
@ -657,7 +657,7 @@ services:
|
||||||
hostname: exc1
|
hostname: exc1
|
||||||
<<: *x-logging
|
<<: *x-logging
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
image: meldiron/appwrite-executor:latest
|
image: openruntimes/executor:0.2.0
|
||||||
networks:
|
networks:
|
||||||
- appwrite
|
- appwrite
|
||||||
- runtimes
|
- runtimes
|
||||||
|
|
|
@ -63,6 +63,7 @@ class V17 extends Migration
|
||||||
* Create 'size' attribute
|
* Create 'size' attribute
|
||||||
*/
|
*/
|
||||||
$this->createAttributeFromCollection($this->projectDB, $id, 'size');
|
$this->createAttributeFromCollection($this->projectDB, $id, 'size');
|
||||||
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::warning("'size' from {$id}: {$th->getMessage()}");
|
Console::warning("'size' from {$id}: {$th->getMessage()}");
|
||||||
}
|
}
|
||||||
|
@ -71,10 +72,30 @@ class V17 extends Migration
|
||||||
/**
|
/**
|
||||||
* Delete 'endTime' attribute (use startTime+duration if needed)
|
* Delete 'endTime' attribute (use startTime+duration if needed)
|
||||||
*/
|
*/
|
||||||
$this->projectDB->deleteAttribute($id, 'startTime');
|
$this->projectDB->deleteAttribute($id, 'endTime');
|
||||||
$this->createAttributeFromCollection($this->projectDB, $id, 'startTime');
|
$this->projectDB->deleteCachedCollection($id);
|
||||||
} catch (\Throwable $th) {
|
} 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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue