Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Delete column from migration

<?php

$forge->dropColumn('table_name', 'column_1,column_2'); // by proving comma separated column names
$forge->dropColumn('table_name', ['column_1', 'column_2']); // by proving array of column names
Source by codeigniter.com #
 
PREVIOUS NEXT
Tagged: #Delete #column #migration
ADD COMMENT
Topic
Name
3+1 =