^[GS]^
Member
I cant use createTable :/
What I do wrong?
No errors, no log, no table....
PHP:
<?php
namespace GSZone\test;
use XF\AddOn\AbstractSetup;
use XF\Db\Schema\Create;
class Setup extends AbstractSetup
{
public function install(array $stepParams = [])
{
$sm = $this->schemaManager();
$sm->createTable('xf_test', function(Create $table)
{
$table->addColumn('test_id', 'int')->autoIncrement();
$table->addColumn('name', 'varchar', 128);
$table->addColumn('enabled', 'tinyint', 3)->setDefault(1);
$table->addPrimaryKey('test_id');
});
}
public function upgrade(array $stepParams = [])
{
// TODO: Implement upgrade() method.
}
public function uninstall(array $stepParams = [])
{
$sm = $this->schemaManager();
$sm->dropTable('xf_test');
}
}
What I do wrong?
No errors, no log, no table....