Added NSFW compatibility

This commit is contained in:
2026-06-27 18:57:26 +02:00
parent 2222d88b1d
commit bb0658b0e5
9 changed files with 53 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ class Setup extends AbstractSetup
{
$this->schemaManager()->alterTable('xf_user', function (\XF\Db\Schema\Alter $table) {
$table->addColumn('rhpz_entry_count', 'int')->setDefault(0);
$table->addColumn('nsfw_content', 'int')->setDefault(0);
});
}
@@ -56,10 +57,17 @@ class Setup extends AbstractSetup
});
}
public function upgrade1010070Step1(): void
{
$this->schemaManager()->alterTable('xf_user', function (\XF\Db\Schema\Alter $table) {
$table->addColumn('nsfw_content', 'int')->setDefault(0);
});
}
public function uninstallStep1(): void
{
$this->schemaManager()->alterTable('xf_user', function($table) {
$table->dropColumns(['rhpz_entry_count']);
$table->dropColumns(['rhpz_entry_count', 'nsfw_content']);
});
}