Skip to content

Commit bf8ff51

Browse files
committed
Make suppliers notes nullable by default
1 parent 7891f52 commit bf8ff51

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

database/migrations/2025_11_10_205136_change_suppliers_notes_to_text.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public function up(): void
2121
*/
2222
public function down(): void
2323
{
24-
Schema::table('text', function (Blueprint $table) {
25-
//
26-
});
24+
2725
}
2826
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('suppliers', function (Blueprint $table) {
15+
$table->text('notes')->nullable()->default(null)->change();
16+
});
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*/
22+
public function down(): void
23+
{
24+
25+
}
26+
};

0 commit comments

Comments
 (0)