Merge branch 'master' into php81-migration

This commit is contained in:
Jan Böhmer 2023-06-11 12:20:02 +02:00
commit 624696711d
9 changed files with 671 additions and 646 deletions

View file

@ -43,8 +43,8 @@ class PKImportHelper
*/
public function purgeDatabaseForImport(): void
{
//Versions with "" are needed !!
$purger = new ResetAutoIncrementORMPurger($this->em, ['users', '"users"', 'groups', '"groups"', 'u2f_keys', 'internal', 'migration_versions']);
//We use the ResetAutoIncrementORMPurger to reset the auto increment values of the tables. Also it normalizes table names before checking for exclusion.
$purger = new ResetAutoIncrementORMPurger($this->em, ['users', 'groups', 'u2f_keys', 'internal', 'migration_versions']);
$purger->purge();
}