Initial Upload

This commit is contained in:
Matt Batchelder
2025-12-02 10:32:59 -05:00
commit 05ce0da296
2240 changed files with 467811 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
/**
* Set Display Group owner to existing Super Admin user
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
*/
use Phinx\Migration\AbstractMigration;
class FixOrphanedDisplayGroupsMigration extends AbstractMigration
{
/** @inheritDoc */
public function change()
{
$this->execute('UPDATE `displaygroup` SET userId = (SELECT userId FROM `user` WHERE userTypeId = 1 LIMIT 1) WHERE userId NOT IN (SELECT userId FROM `user`)');
}
}