Skip to content

Commit 62bc98b

Browse files
committed
fix: trim _ from database prefix during project initialization
1 parent b96f1c7 commit 62bc98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Project/InitializeProjectCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private function addEnvironmentDatabaseNodes(Collection $environments, OutputInt
172172
Arr::set($options, 'database', $databaseServer['name']);
173173
} elseif (!empty($databaseServer['name']) && !empty($databasePrefix)) {
174174
Arr::set($options, 'database.server', $databaseServer['name']);
175-
Arr::set($options, 'database.name', sprintf('%s_%s', $databasePrefix, $environment));
175+
Arr::set($options, 'database.name', sprintf('%s_%s', rtrim($databasePrefix, '_'), $environment));
176176
}
177177

178178
return $options;

0 commit comments

Comments
 (0)