Skip to content

Commit

Permalink
- mysql 5.7 compatibility, making some additional columns nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 18, 2017
1 parent 85b71f6 commit f513ddf
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?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();
});
}
}
3 changes: 3 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
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>.
Expand Down

0 comments on commit f513ddf

Please sign in to comment.