Skip to content

Commit

Permalink
Update workspace-database argument to handle connection strings start…
Browse files Browse the repository at this point in the history
…ing with both postgres and postgresql. Closes #1199
  • Loading branch information
kaidaguerre committed Dec 6, 2021
1 parent 62be05d commit d253e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdconfig/connection_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func ValidateConnectionStringArgs() error {
connectionString := workspaceDatabase

// so a backend was set - is it a connection string or a database name
if !strings.HasPrefix(workspaceDatabase, "postgresql://") {
if !(strings.HasPrefix(workspaceDatabase, "postgresql://") || strings.HasPrefix(workspaceDatabase, "postgres://")) {
// it must be a database name - verify the cloud token was provided
cloudToken := viper.GetString(constants.ArgCloudToken)
if cloudToken == "" {
Expand Down

0 comments on commit d253e68

Please sign in to comment.