diff --git a/database/migrations/2025_05_27_152856_change_actions.php b/database/migrations/2025_05_27_152856_change_actions.php index 800938a0..06120c6e 100644 --- a/database/migrations/2025_05_27_152856_change_actions.php +++ b/database/migrations/2025_05_27_152856_change_actions.php @@ -23,11 +23,11 @@ public function up() // Explicit conversion using PostgreSQL's USING clause DB::statement('ALTER TABLE actions ALTER COLUMN type TYPE integer USING type::integer'); - DB::statement('ALTER TABLE actions ALTER COLUMN type SET NOT NULL'); + // DB::statement('ALTER TABLE actions ALTER COLUMN type SET NOT NULL'); } else { // MySQL, MariaDB, SQLite: automatic or dynamic type conversion Schema::table('actions', function (Blueprint $table) { - $table->integer('type')->nullable(false)->change(); + $table->integer('type')->nullable(true)->change(); }); } Schema::table('actions', function (Blueprint $table) {