fix: migration
This commit is contained in:
parent
4ebe485f05
commit
43a6945d30
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,8 @@ use Appwrite\Migration\Migration;
|
|||
use Utopia\CLI\Console;
|
||||
use Utopia\Database\Database;
|
||||
use Utopia\Database\Document;
|
||||
use Utopia\Database\Helpers\Permission;
|
||||
use Utopia\Database\Helpers\Role;
|
||||
|
||||
class V18 extends Migration
|
||||
{
|
||||
|
@ -91,6 +93,12 @@ class V18 extends Migration
|
|||
$this->changeAttributeInternalType($id, $attribute['$id'], 'DOUBLE');
|
||||
}
|
||||
|
||||
try {
|
||||
$this->projectDB->updateCollection($id, [Permission::create(Role::any())], true);
|
||||
} catch (\Throwable $th) {
|
||||
Console::warning($th->getMessage());
|
||||
}
|
||||
|
||||
switch ($id) {
|
||||
case 'users':
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue