Skip to content

2.0.1 database username is hardcoded #78

@matthewsaum

Description

@matthewsaum

Completely rewriting this with better formatting and info. It wasn't the database name, it was the user. FlyWay errors out when I try to use a user which isn't postgres to access things.

* What went wrong:
Execution failed for task ':api-svc:db:flywayMigrate'.
> Error occurred while executing flywayMigrate
  Migration B25__baseline.sql failed
  ----------------------------------
  SQL State  : 42501
  Error Code : 0
  Message    : ERROR: must be member of role "postgres"
  Location   : db/migration/B25__baseline.sql (/opt/raid/api-svc/db/build/resources/main/db/migration/B25__baseline.sql)
  Line       : 19
  Statement  : ALTER SCHEMA api_svc OWNER TO postgres
  
  Migration B25__baseline.sql failed
  ----------------------------------
  SQL State  : 42501
  Error Code : 0
  Message    : ERROR: must be member of role "postgres"
  Location   : db/migration/B25__baseline.sql (/opt/raid/api-svc/db/build/resources/main/db/migration/B25__baseline.sql)
  Line       : 19
  Statement  : ALTER SCHEMA api_svc OWNER TO postgres
  
  ERROR: must be member of role "postgres"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions