FEATURE: add module_settings to modules table

This commit is contained in:
Michal Kváček
2016-03-14 13:13:18 +01:00
parent 1bd00f1a4f
commit 14f2673842
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddModuleSettings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('modules', function (Blueprint $table) {
$table->text('module_settings')
->nullable()
->default(null)
->comment('JSON serialized object with configuration of given module.');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('modules', function (Blueprint $table) {
$table->dropColumn('module_settings');
});
}
}