First commit

This commit is contained in:
2026-05-24 11:53:11 +02:00
commit d79dbecad4
54 changed files with 1104 additions and 0 deletions

32
Setup.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
namespace RomhackPlaza\Master;
use XF\AddOn\AbstractSetup;
use XF\AddOn\StepRunnerInstallTrait;
use XF\AddOn\StepRunnerUninstallTrait;
use XF\AddOn\StepRunnerUpgradeTrait;
class Setup extends AbstractSetup
{
use StepRunnerInstallTrait;
use StepRunnerUpgradeTrait;
use StepRunnerUninstallTrait;
/**
* Create Database xf_user new fields.
*/
public function installStep1(): void
{
$this->schemaManager()->alterTable('xf_user', function (\XF\Db\Schema\Alter $table) {
$table->addColumn('rhpz_entry_count', 'int')->setDefault(0);
});
}
public function uninstallStep1(): void
{
$this->schemaManager()->alterTable('xf_user', function($table) {
$table->dropColumns(['rhpz_entry_count']);
});
}
}