Skip to content

Commit f81a81e

Browse files
authored
Merge pull request #517 from dbarzin/dev
fix type field
2 parents 26f8cfe + cd40371 commit f81a81e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2025_05_27_152856_change_actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public function up()
2323

2424
// Explicit conversion using PostgreSQL's USING clause
2525
DB::statement('ALTER TABLE actions ALTER COLUMN type TYPE integer USING type::integer');
26-
DB::statement('ALTER TABLE actions ALTER COLUMN type SET NOT NULL');
26+
// DB::statement('ALTER TABLE actions ALTER COLUMN type SET NOT NULL');
2727
} else {
2828
// MySQL, MariaDB, SQLite: automatic or dynamic type conversion
2929
Schema::table('actions', function (Blueprint $table) {
30-
$table->integer('type')->nullable(false)->change();
30+
$table->integer('type')->nullable(true)->change();
3131
});
3232
}
3333
Schema::table('actions', function (Blueprint $table) {

0 commit comments

Comments
 (0)