[RSS Feed/News] Drop Column On Uninstall

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have some code in one of my install steps:
Code:

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:

Code:
if ($this->schemaManager()->columnExists('xf_user', 'token'))
{
    $table->removeColumn('token', 'text');
}

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom