abdfahim
Well-known member
Is this object-oriented style a MySql syntax or XF-specific syntax?
I usually use the Procedural style
If it is XF-specific, where can I find a reference of all supported methods? I want to perform below queries:
SQL:
$table->addColumn('demo_portal_auto_feature', 'tinyint')->setDefault(0);
I usually use the Procedural style
SQL:
ALTER TABLE mytable ADD COLUMN demo_portal_auto_feature .......
If it is XF-specific, where can I find a reference of all supported methods? I want to perform below queries:
Code:
$db->query("ALTER TABLE `xf_user_field` CHANGE `display_group` `display_group` ENUM('personal','contact','preferences','myaddon_new_column')
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'personal';");
$db->query("UPDATE xf_user_field SET display_group = 'myaddon_new_column' WHERE field_id IN ('myaddon_my_field')");