Skip to content

Commit

Permalink
fix: rockmigrations() causing error on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Feb 15, 2024
1 parent ea74cc8 commit 7f80154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ public function share($files = null, $reset = false)

public function sql(string $query): void
{
if (!rockmigrations()->isCLI()) return;
if (php_sapi_name() !== 'cli') return;
$db = $this->getDB();
$db->prepare($query)->execute();
}
Expand Down

0 comments on commit 7f80154

Please sign in to comment.