Earl
Well-known member
I'm writing an add-on to add-on
I need to modify one of his column and append new ENUM value to the list.
I know I can just modify the column with this code
But I have to get already existing list and just append the value 'resource' to the list.
In what way can I do this?
And I need to reverse that process with the uninstall code as well.
Somebody please help
I need to modify one of his column and append new ENUM value to the list.
I know I can just modify the column with this code
Code:
public static function install()
{
$db = XenForo_Application::getDb();
$db->query("ALTER TABLE his_table MODIFY COLUMN his_column ENUM('post','thread','resource')");
}
In what way can I do this?
And I need to reverse that process with the uninstall code as well.
Somebody please help
Last edited: