A free open source IT asset/license management system
Make suppliers notes nullable by default
snipebf8ff51234d2
diff --git a/database/migrations/2025_11_10_205136_change_suppliers_notes_to_text.php b/database/migrations/2025_11_10_205136_change_suppliers_notes_to_text.phpindex e155623a67..c50dd87445 100644--- a/database/migrations/2025_11_10_205136_change_suppliers_notes_to_text.php+++ b/database/migrations/2025_11_10_205136_change_suppliers_notes_to_text.php@@ -21,8 +21,6 @@ return new class extends Migration*/public function down(): void{- Schema::table('text', function (Blueprint $table) {- //- });+}};diff --git a/database/migrations/2025_11_10_211219_change_suppliers_notes_to_nullable.php b/database/migrations/2025_11_10_211219_change_suppliers_notes_to_nullable.phpnew file mode 100644index 0000000000..23d93fbc70--- /dev/null+++ b/database/migrations/2025_11_10_211219_change_suppliers_notes_to_nullable.php@@ -0,0 +1,26 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++return new class extends Migration+{+ /**+ * Run the migrations.+ */+ public function up(): void+ {+ Schema::table('suppliers', function (Blueprint $table) {+ $table->text('notes')->nullable()->default(null)->change();+ });+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void+ {++ }+};