Skip to content

Commit

Permalink
Setting the status column as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 13, 2017
1 parent 6ed7e00 commit 8731631
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

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

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

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('page__page_translations', function (Blueprint $table) {
$table->string('status')->nullable(false)->change();
});
}
}
1 change: 1 addition & 0 deletions Modules/Page/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ versions:
changed:
- Adding the page status field
- Sending the page id from the route parameters to the single media component (makes loading single media faster)
- Making the <code>status</code> column in <code>page_translations</code> table nullable (migrate with <code>php artisan module:migrate page</code>)
"3.1.0":
added:
- New UI interaction on the page index to select pages and mark one or mutiple as on/offline
Expand Down

0 comments on commit 8731631

Please sign in to comment.