I have some code in one of my install steps:
Is there a way to drop columns on uninstall()? Example:
Code:
if (!$this->schemaManager()->columnExists('xf_user', 'token'))
{
$table->addColumn('token', 'text')->nullable(true);
}
Is there a way to drop columns on uninstall()? Example:
Code:
if ($this->schemaManager()->columnExists('xf_user', 'token'))
{
$table->removeColumn('token', 'text');
}