Add description field to nodes (#1065)

This commit is contained in:
Stan 2018-03-26 20:57:24 +02:00 committed by Dane Everitt
parent 56478d81da
commit f1a76ec7fd
5 changed files with 65 additions and 11 deletions

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDescriptionToNodes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->text('description')->after('name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn('description');
});
}
}