A free open source IT asset/license management system
Added notes migration
snipe9adcf58ae516
diff --git a/database/migrations/2022_03_03_225655_add_notes_to_accessories.php b/database/migrations/2022_03_03_225655_add_notes_to_accessories.phpnew file mode 100644index 0000000000..d6f8fac6f3--- /dev/null+++ b/database/migrations/2022_03_03_225655_add_notes_to_accessories.php@@ -0,0 +1,34 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++class AddNotesToAccessories extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('accessories', function (Blueprint $table) {+ $table->text("notes")->nullable()->default(null);+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('accessories', function (Blueprint $table) {+ if (Schema::hasColumn('accessories', 'notes')) {+ $table->dropColumn('notes');+ }+ });+ }+}diff --git a/database/migrations/2022_03_03_225754_add_notes_to_components.php b/database/migrations/2022_03_03_225754_add_notes_to_components.phpnew file mode 100644index 0000000000..2e09930974--- /dev/null+++ b/database/migrations/2022_03_03_225754_add_notes_to_components.php@@ -0,0 +1,34 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++class AddNotesToComponents extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('components', function (Blueprint $table) {+ $table->text("notes")->nullable()->default(null);+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('components', function (Blueprint $table) {+ if (Schema::hasColumn('components', 'notes')) {+ $table->dropColumn('notes');+ }+ });+ }+}diff --git a/database/migrations/2022_03_03_225824_add_notes_to_consumables.php b/database/migrations/2022_03_03_225824_add_notes_to_consumables.phpnew file mode 100644index 0000000000..e024d65144--- /dev/null+++ b/database/migrations/2022_03_03_225824_add_notes_to_consumables.php@@ -0,0 +1,34 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++class AddNotesToConsumables extends Migration+{+ /**+ * Run the migrations.+ *+ * @return void+ */+ public function up()+ {+ Schema::table('consumables', function (Blueprint $table) {+ $table->text("notes")->nullable()->default(null);+ });+ }++ /**+ * Reverse the migrations.+ *+ * @return void+ */+ public function down()+ {+ Schema::table('consumables', function (Blueprint $table) {+ if (Schema::hasColumn('consumables', 'notes')) {+ $table->dropColumn('notes');+ }+ });+ }+}