Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Multiple Init script fixes and some other Postgres fixes #3950

Draft
wants to merge 9 commits into
base: next
Choose a base branch
from
Prev Previous commit
Next Next commit
format
  • Loading branch information
peaklabs-dev committed Oct 18, 2024
commit 907c6cc4e54f6b82e0d0f1d35c2c1d56eaf84ace
1 change: 1 addition & 0 deletions app/Livewire/Project/Database/Postgresql/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public function save_init_script($script)
$initScripts = collect($this->database->init_scripts ?? []);

$existingScript = $initScripts->firstWhere('filename', $script['filename']);

if ($existingScript && $existingScript['index'] !== $script['index']) {
$this->dispatch('error', 'A script with this filename already exists.');

Expand Down