Add support for node creation

This commit is contained in:
Dane Everitt 2016-01-04 23:59:45 -05:00
parent b5821ffb0f
commit d381c691ba
8 changed files with 431 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveNodeIp extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->dropColumn('ip');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->string('ip')->after('fqdn');
});
}
}