Cupara
Well-known member
So I have learned to create tables using the Setup.php file but have found nada on doing updates and inserts to said table.
That is from the documentation for XF2. So how does one process updating a table or insert to that table.
Thanks
PHP:
$sm = \XF::db()->getSchemaManager();
$sm->createTable('xf_some_table', function(\XF\Db\Schema\Create $table)
{
$table->addColumn('some_id', 'int')->autoIncrement();
$table->addColumn('some_name', 'varchar', 50);
});
That is from the documentation for XF2. So how does one process updating a table or insert to that table.
Thanks