Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to change the colum type in migration laravel

public function changeColumnType($table, $column, $newColumnType) {                
    DB::statement("ALTER TABLE $table CHANGE $column $column $newColumnType");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #colum #type #migration #laravel
ADD COMMENT
Topic
Name
1+6 =