A free open source IT asset/license management system
Allow admins to show status labels in nav
snipef04cfb3e7f01
diff --git a/database/migrations/2016_08_23_145619_add_show_in_nav_to_status_labels.php b/database/migrations/2016_08_23_145619_add_show_in_nav_to_status_labels.phpnew file mode 100644index 0000000000..a67f34db59--- /dev/null+++ b/database/migrations/2016_08_23_145619_add_show_in_nav_to_status_labels.php@@ -0,0 +1,31 @@+<?php++use Illuminate\Database\Schema\Blueprint;+use Illuminate\Database\Migrations\Migration;++class AddShowInNavToStatusLabels extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('status_labels', function (Blueprint $table) {+ $table->boolean('show_in_nav')->default(0);+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('status_labels', function (Blueprint $table) {+ $table->dropColumn('show_in_nav', 'field_encrypted');+ });+ }+}