Added NSFW compatibility
This commit is contained in:
10
Setup.php
10
Setup.php
@@ -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']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user