composer.lock
This commit is contained in:
parent
c889bf54d3
commit
29fef07019
2 changed files with 3 additions and 4 deletions
2
composer.lock
generated
2
composer.lock
generated
|
@ -5677,5 +5677,5 @@
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "8.0"
|
"php": "8.0"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.3.0"
|
"plugin-api-version": "2.2.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ class V19 extends Migration
|
||||||
Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')');
|
Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')');
|
||||||
$this->projectDB->setNamespace("_{$this->project->getInternalId()}");
|
$this->projectDB->setNamespace("_{$this->project->getInternalId()}");
|
||||||
|
|
||||||
$this->alterPermissionIndex('_' . $this->project->getInternalId() . '__metadata');
|
$this->alterPermissionIndex('_metadata');
|
||||||
|
|
||||||
Console::info('Migrating Databases');
|
Console::info('Migrating Databases');
|
||||||
$this->migrateDatabases();
|
$this->migrateDatabases();
|
||||||
|
@ -77,7 +77,6 @@ class V19 extends Migration
|
||||||
|
|
||||||
$this->alterPermissionIndex($id);
|
$this->alterPermissionIndex($id);
|
||||||
|
|
||||||
|
|
||||||
usleep(50000);
|
usleep(50000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,7 +142,7 @@ class V19 extends Migration
|
||||||
|
|
||||||
protected function alterPermissionIndex($collectionName): void
|
protected function alterPermissionIndex($collectionName): void
|
||||||
{
|
{
|
||||||
$collectionName = "`{$this->projectDB->getDefaultDatabase()}`.`{$collectionName}_perms`";
|
$collectionName = "`{$this->projectDB->getDefaultDatabase()}`.`'_{$this->project->getInternalId()}_{$collectionName}_perms`";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->pdo->prepare("ALTER TABLE {$collectionName}
|
$this->pdo->prepare("ALTER TABLE {$collectionName}
|
||||||
|
|
Loading…
Reference in a new issue