Skip to content

Commit

Permalink
Only assign a file name if no script name is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Sep 9, 2024
1 parent 80f3889 commit f8cbce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/MigrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function save($executeOnSave = true)
{
$this->validate();

if (!strlen($this->scriptFileName) || $this->isNewModel()) {
if (!strlen($this->scriptFileName)) {
$this->assignFileName();
}

Expand Down

0 comments on commit f8cbce7

Please sign in to comment.