Add an index to a new column?

Status
This content is read-only, or is not open for further replies.

Andy R

Guest
offline
How do I tell the schemaManager to create an index along with a new column?

Example?


PHP:

Code:
$this->schemaManager()->createTable('some_table', function(Create $table)
        {
        
            $table->addColumn('some_id', 'int');
        });

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom