Skip to content

Commit

Permalink
Merge pull request #542 from kamekun/3.0
Browse files Browse the repository at this point in the history
Mke body column from  page translations nullable
  • Loading branch information
nWidart committed May 23, 2018
2 parents 705d04d + bd05494 commit 18e0817
Showing 1 changed file with 32 additions and 0 deletions.
@@ -0,0 +1,32 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class EditBodyColumnNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('page__page_translations', function (Blueprint $table) {
$table->text('body')->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('page__page_translations', function (Blueprint $table) {
$table->text('body')->nullable(false)->change();
});
}
}

0 comments on commit 18e0817

Please sign in to comment.