Made notes column in table bookings nullable.

This commit is contained in:
Lukas Halbritter
2018-09-08 12:22:37 +02:00
parent cdba55315d
commit 291e227a2a
3 changed files with 263 additions and 1 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MakeBookingsNoteNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('bookings', function (Blueprint $table) {
$table->string('note')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('bookings', function (Blueprint $table) {
$table->string('note')->change();
});
}
}