fix: migration for stats region

This commit is contained in:
Torsten Dittmann 2022-11-17 11:31:24 +01:00
parent f63aeb50a1
commit eb5e853f2d

View file

@ -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;
}