Skip to content

Commit a94ecc9

Browse files
committed
feat: add a warning about the database password
1 parent c8e8001 commit a94ecc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Command/Database/CreateDatabaseServerCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ protected function perform(InputInterface $input, ConsoleOutput $output)
7171

7272
$database = $this->apiClient->createDatabaseServer($name, (int) $network['id'], $type, $storage, $public);
7373

74+
$output->info(sprintf('<comment>Warning:</comment> The username/password below won\'t be shown again. If you lose the password, use the "<comment>%s</comment>" command to generate a new one.', RotateDatabaseServerPasswordCommand::NAME));
75+
$output->newLine();
76+
7477
$output->horizontalTable(
7578
['Database Sever', new TableSeparator(), 'Username', 'Password', new TableSeparator(), 'Type', 'Public', 'Storage (in GB)'],
7679
[[$database['name'], new TableSeparator(), $database['username'], $database['password'], new TableSeparator(), $database['type'], $database['publicly_accessible'] ? 'yes' : 'no', $database['storage']]]

0 commit comments

Comments
 (0)