Skip to content

Postgres schemas and migrations #661

@ricksanchez

Description

@ricksanchez

Not possible to migrate if there is a table with the same name in other schema.
Example:
There is an existing "stat"."user" table
and the migration is for "public"."user" (default schema)
Extra: models

User
    username Text sqltype=varchar(17)
      ....

Result:
persistent is not creating the table "user" in "public" because of the one in "stat", after it I get:

*** Exception: SqlError {sqlState = "42P01", sqlExecStatus = FatalError, sqlErrorMsg = "relation \"user\" does not exist", sqlErrorDetail =
 "", sqlErrorHint = ""}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions