Update migration script to not remove schedule from functions

This commit is contained in:
Steven Nguyen 2023-08-31 08:40:53 -07:00
parent 458dd8c97d
commit c8d6ac0267
No known key found for this signature in database

View file

@ -10,7 +10,6 @@ use Utopia\Database\Database;
use Utopia\Database\DateTime;
use Utopia\Database\Document;
use Utopia\Database\Exception;
use Utopia\Database\Query;
class V19 extends Migration
{
@ -343,6 +342,7 @@ class V19 extends Migration
'providerSilentMode',
'logging',
'deploymentInternalId',
'schedule',
'scheduleInternalId',
'scheduleId',
'version',
@ -662,14 +662,6 @@ class V19 extends Migration
$this->projectDB->deleteCachedCollection('projects');
try {
$this->projectDB->deleteAttribute('functions', 'schedule');
} catch (\Throwable $th) {
Console::warning("'schedule' from functions: {$th->getMessage()}");
}
$this->projectDB->deleteCachedCollection('functions');
try {
$this->projectDB->deleteAttribute('builds', 'stderr');
} catch (\Throwable $th) {