XF 2.0 How do I set ENUM values with addColumn?

mjda

Well-known member
As the title says, I'm wondering how to define the ENUM values when creating the table with the schema manager?

This is what I have, but I know that won't work:

PHP:
$table->addColumn('transaction_status', 'enum');
 
As the title says, I'm wondering how to define the ENUM values when creating the table with the schema manager?

This is what I have, but I know that won't work:

PHP:
$table->addColumn('transaction_status', 'enum');
I think you have to provide the values. Other areas in the XF source show:
PHP:
            $table->addColumn('recipient_state', 'enum')->values(['active','deleted','deleted_ignored']);
 
Top Bottom