Update creation script for schema_deployer (#1019)

* Update creation script for schema_deployer

Move the create user command for schema_deployer before the
initialization of roles. As the owner of all schema objects, it needs to
be present before grant statements are executed.

Also fixed a bug in credential printing, which fails when the password
contains '%'.
This commit is contained in:
Weimin Yu 2021-03-18 22:24:03 -04:00 committed by GitHub
parent a0c710ab18
commit 5e4336fd3b
3 changed files with 18 additions and 29 deletions

View file

@ -75,7 +75,7 @@ public class GetSqlCredentialCommand implements Command {
"%s %s %s", cloudSqlInstanceConnectionName, credential.login(), credential.password());
if (outputPath == null) {
System.out.printf(outputText);
System.out.print(outputText);
return;
}
try (FileOutputStream out = new FileOutputStream(outputPath.toFile())) {