Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

migration rename column laravel

public function down()
{
    Schema::table('posts', function (Blueprint $table) {
        $table->renameColumn('user_id', 'author_ID');
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #migration #rename #column #laravel
ADD COMMENT
Topic
Name
2+3 =