Code cleanup and fixes filemanager

This commit is contained in:
Dane Everitt 2016-01-01 18:08:15 -05:00
parent a391a2d854
commit 46117afc77
9 changed files with 246 additions and 23 deletions

View file

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class NodeHttpsToScheme extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->string('https', 5)->default('http')->change();
$table->renameColumn('https', 'scheme');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->boolean('scheme')->default(false)->change();
$table->renameColumn('scheme', 'https');
});
}
}