mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #6095 from appwrite/fix-function-schedule-migration
Update migration script to not remove schedule from functions
This commit is contained in:
commit
1dc2c08e15
1 changed files with 1 additions and 9 deletions
|
|
@ -10,7 +10,6 @@ use Utopia\Database\Database;
|
||||||
use Utopia\Database\DateTime;
|
use Utopia\Database\DateTime;
|
||||||
use Utopia\Database\Document;
|
use Utopia\Database\Document;
|
||||||
use Utopia\Database\Exception;
|
use Utopia\Database\Exception;
|
||||||
use Utopia\Database\Query;
|
|
||||||
|
|
||||||
class V19 extends Migration
|
class V19 extends Migration
|
||||||
{
|
{
|
||||||
|
|
@ -343,6 +342,7 @@ class V19 extends Migration
|
||||||
'providerSilentMode',
|
'providerSilentMode',
|
||||||
'logging',
|
'logging',
|
||||||
'deploymentInternalId',
|
'deploymentInternalId',
|
||||||
|
'schedule',
|
||||||
'scheduleInternalId',
|
'scheduleInternalId',
|
||||||
'scheduleId',
|
'scheduleId',
|
||||||
'version',
|
'version',
|
||||||
|
|
@ -662,14 +662,6 @@ class V19 extends Migration
|
||||||
|
|
||||||
$this->projectDB->deleteCachedCollection('projects');
|
$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 {
|
try {
|
||||||
$this->projectDB->deleteAttribute('builds', 'stderr');
|
$this->projectDB->deleteAttribute('builds', 'stderr');
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue