FEATURE: add extended modules database structure
FEATURE: add extended modules database structure squash
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class ExtendModulesInfo extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('modules', function (Blueprint $table) {
|
||||
$table->string('alias', 128);
|
||||
$table->boolean('enabled')
|
||||
->index()
|
||||
->comment('Is this module in use?');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('modules', function (Blueprint $table) {
|
||||
$table->dropColumn('alias');
|
||||
$table->dropColumn('keywords');
|
||||
$table->dropColumn('providers');
|
||||
$table->dropColumn('module_order');
|
||||
$table->dropColumn('aliases');
|
||||
$table->dropColumn('files');
|
||||
$table->dropColumn('enabled');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user