mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: migration for stats region
This commit is contained in:
parent
f63aeb50a1
commit
eb5e853f2d
1 changed files with 12 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class V16 extends Migration
|
|||
case 'sessions':
|
||||
try {
|
||||
/**
|
||||
* Create 'compression' attribute
|
||||
* Create 'expire' attribute
|
||||
*/
|
||||
$this->projectDB->deleteAttribute($id, 'expire');
|
||||
} catch (\Throwable $th) {
|
||||
|
|
@ -79,6 +79,17 @@ class V16 extends Migration
|
|||
}
|
||||
break;
|
||||
|
||||
case 'stats':
|
||||
try {
|
||||
/**
|
||||
* Create 'region' attribute
|
||||
*/
|
||||
$this->createAttributeFromCollection($this->projectDB, $id, 'region');
|
||||
} catch (\Throwable $th) {
|
||||
Console::warning("'region' from {$id}: {$th->getMessage()}");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue