Make icon column nullable #641

This commit is contained in:
Nabeel Shahzad
2020-03-28 14:01:53 -04:00
parent 45873431e4
commit ba0ae05c2a

View File

@@ -0,0 +1,20 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class PageIconNullable extends Migration
{
public function up()
{
Schema::table('pages', function (Blueprint $table) {
$table->string('icon')->change()->nullable();
});
}
public function down()
{
}
}