Setting the status column as nullable

parent 6ed7e00c
<?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();
});
}
}
...@@ -4,6 +4,7 @@ versions: ...@@ -4,6 +4,7 @@ versions:
changed: changed:
- Adding the page status field - Adding the page status field
- Sending the page id from the route parameters to the single media component (makes loading single media faster) - 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": "3.1.0":
added: added:
- New UI interaction on the page index to select pages and mark one or mutiple as on/offline - New UI interaction on the page index to select pages and mark one or mutiple as on/offline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment