Skip to content

Commit

Permalink
Added migration to alter menu item icon field so that Pingpong MenuIt…
Browse files Browse the repository at this point in the history
…em correctly renders empty icon (#26)
  • Loading branch information
optik authored and nWidart committed May 6, 2016
1 parent 9a72ca2 commit 0a070b8
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

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

class UpdateIconColumnOnMenuitemsTable extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('menu__menuitems', function(Blueprint $table)
{
$table->string('icon')->nullable()->default(null)->change();
});
}

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

}

0 comments on commit 0a070b8

Please sign in to comment.