Answers for "laravel migration add comment to table while creating table"

PHP
0

laravel migration add comment to table while creating table

in migration file add DB::statement("ALTER TABLE foo comment 'comment'") to up method

Schema::create("foo", function (Blueprint $table) 
    {
     .
     .
     .
    });


DB::statement("ALTER TABLE `foo` comment 'comment'");
Posted by: Guest on April-26-2021

Code answers related to "laravel migration add comment to table while creating table"

Browse Popular Code Answers by Language