Skip to content

Commit c170cd9

Browse files
authored
Merge pull request #518 from dbarzin/dev
set score value for PostegreSQL
2 parents f81a81e + 9554f0c commit c170cd9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/Http/Controllers/ControlController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,7 @@ public function doMake(Request $request)
14171417
$action->name = $control->name;
14181418
$action->scope = $control->scope;
14191419
$action->status = 0;
1420+
$action->score = 0;
14201421
$action->cause = $control->observations;
14211422
$action->remediation = $control->action_plan;
14221423
$action->due_date = request('next_date');

database/migrations/2025_05_27_152856_change_actions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ 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');
2726
} else {
2827
// MySQL, MariaDB, SQLite: automatic or dynamic type conversion
2928
Schema::table('actions', function (Blueprint $table) {

0 commit comments

Comments
 (0)