- mysql 5.7 compatibility, making some additional columns nullable

parent 388036dd
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MakeTitleFieldNullableMenuTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('menu__menu_translations', function (Blueprint $table) {
$table->string('title')->nullable()->change();
});
Schema::table('menu__menuitems', function (Blueprint $table) {
$table->string('class')->nullable()->change();
});
Schema::table('menu__menuitem_translations', function (Blueprint $table) {
$table->string('title')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('menu__menu_translations', function (Blueprint $table) {
$table->string('title')->nullable(false)->change();
});
Schema::table('menu__menuitems', function (Blueprint $table) {
$table->string('class')->nullable(false)->change();
});
Schema::table('menu__menuitem_translations', function (Blueprint $table) {
$table->string('title')->nullable(false)->change();
});
}
}
url: https://github.com/AsgardCms/Platform
versions:
"3.1.0@unreleased":
changed:
- mysql 5.7 compatibility, making some additional columns nullable
"3.0.0":
changed:
- The menu menu item weight has been changed to <code>30</code>.
......
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