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 8b2ddf8249
commit 6bee440194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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())) {