Removed warnings about changed permissions, as the old changes are reset later, and we now do the permission migration in Part-DB directly

This commit is contained in:
Jan Böhmer 2023-04-08 23:29:23 +02:00
parent 2717d7d311
commit 036eaf3bae
4 changed files with 0 additions and 16 deletions

View file

@ -36,8 +36,6 @@ use Psr\Log\LoggerInterface;
abstract class AbstractMultiPlatformMigration extends AbstractMigration
{
public const ADMIN_PW_LENGTH = 10;
protected bool $permissions_updated = false;
protected string $admin_pw = '';
protected LoggerInterface $logger;
@ -122,17 +120,9 @@ abstract class AbstractMultiPlatformMigration extends AbstractMigration
return password_hash($this->admin_pw, PASSWORD_DEFAULT);
}
public function printPermissionUpdateMessage(): void
{
$this->permissions_updated = true;
}
public function postUp(Schema $schema): void
{
parent::postUp($schema);
if($this->permissions_updated) {
$this->logger->warning('<question>[!!!] Permissions were updated! Please check if they fit your expectations!</question>');
}
if (!empty($this->admin_pw)) {
$this->logger->warning('');