Skip to content

Commit 97ffe33

Browse files
committed
Check that a setting record exists
1 parent 56d97a1 commit 97ffe33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

database/migrations/2025_11_28_175733_add_link_colors_to_settings.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ public function up(): void
6767
$link_light_color = '#084d73';
6868
}
6969

70-
DB::table('settings')->update(['link_light_color' => $link_light_color, 'link_dark_color' => $link_dark_color]);
70+
if ($setting) {
71+
DB::table('settings')->update(['link_light_color' => $link_light_color, 'link_dark_color' => $link_dark_color]);
72+
}
73+
7174

7275

7376

0 commit comments

Comments
 (0)