Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

migration rename column laravel

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