diff --git a/webapp/migrations/Version20240629154640.php b/webapp/migrations/Version20240629154640.php index ebd80b86b8..64e07ff2ab 100644 --- a/webapp/migrations/Version20240629154640.php +++ b/webapp/migrations/Version20240629154640.php @@ -20,13 +20,10 @@ public function getDescription(): string public function up(Schema $schema): void { foreach(self::NEW_ROLES as $role => $description) { - $existingRole = $this->connection->fetchAssociative('SELECT * FROM role WHERE role = :role', ['role' => $role]); - if (!$existingRole) { - $this->addSql( - 'INSERT INTO role (`role`, `description`) VALUES (:role, :desc)', - ['role' => $role, 'desc' => $description] - ); - } + $this->addSql( + 'INSERT INTO role (`role`, `description`) VALUES (:role, :desc)', + ['role' => $role, 'desc' => $description] + ); } }