A lot of things
This commit is contained in:
17
Setup.php
17
Setup.php
@@ -44,6 +44,18 @@ class Setup extends AbstractSetup
|
||||
});
|
||||
}
|
||||
|
||||
public function installStep3(): void
|
||||
{
|
||||
$this->schemaManager()->createTable('xf_romhackplaza_entry_featured_request', function(Create $table){
|
||||
$table->addColumn('featured_request_id', 'int')->autoIncrement();
|
||||
$table->addColumn('entry_id', 'int');
|
||||
$table->addColumn('user_id', 'int');
|
||||
$table->addColumn('entry_title', 'varchar', 255);
|
||||
$table->addColumn('featured_request_state', 'enum')->values(['visible','moderated','rejected'])->setDefault('moderated');
|
||||
$table->addColumn('featured_request_date', 'int');
|
||||
});
|
||||
}
|
||||
|
||||
public function uninstallStep1(): void
|
||||
{
|
||||
$this->schemaManager()->alterTable('xf_user', function($table) {
|
||||
@@ -55,4 +67,9 @@ class Setup extends AbstractSetup
|
||||
{
|
||||
$this->schemaManager()->dropTable('xf_club');
|
||||
}
|
||||
|
||||
public function uninstallStep3(): void
|
||||
{
|
||||
$this->schemaManager()->dropTable('xf_romhackplaza_entry_featured_request');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user