diff --git a/app/Http/Controllers/ControlController.php b/app/Http/Controllers/ControlController.php index b2297f01..4f22cf81 100644 --- a/app/Http/Controllers/ControlController.php +++ b/app/Http/Controllers/ControlController.php @@ -1417,6 +1417,7 @@ public function doMake(Request $request) $action->name = $control->name; $action->scope = $control->scope; $action->status = 0; + $action->score = 0; $action->cause = $control->observations; $action->remediation = $control->action_plan; $action->due_date = request('next_date'); diff --git a/database/migrations/2025_05_27_152856_change_actions.php b/database/migrations/2025_05_27_152856_change_actions.php index 06120c6e..7cfb72a6 100644 --- a/database/migrations/2025_05_27_152856_change_actions.php +++ b/database/migrations/2025_05_27_152856_change_actions.php @@ -23,7 +23,6 @@ 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'); } else { // MySQL, MariaDB, SQLite: automatic or dynamic type conversion Schema::table('actions', function (Blueprint $table) {