From c3008f3dccbf5d13d2191dfc633675fc50b90f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 14 Mar 2016 08:31:51 +0100 Subject: [PATCH] FEATURE: add extended modules database structure --- .../2016_03_14_000228_ExtendModulesInfo.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2016_03_14_000228_ExtendModulesInfo.php diff --git a/database/migrations/2016_03_14_000228_ExtendModulesInfo.php b/database/migrations/2016_03_14_000228_ExtendModulesInfo.php new file mode 100644 index 00000000..c682b591 --- /dev/null +++ b/database/migrations/2016_03_14_000228_ExtendModulesInfo.php @@ -0,0 +1,35 @@ +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('enabled'); + }); + } +}