Skip to content

Migration fails when using database schema #266

@jemidi

Description

@jemidi

When using a database with a schema the table created by 67_api_keys.up.sql will be schema.api_keys.
The subsequent changeset in file 68_api_key_last_used_at.up.sql will hence fail as it - unlike other changesets - references the public namespace directly:

ERROR: relation "public.api_keys" does not exist [Failed SQL: (0) ALTER TABLE public.api_keys
ADD COLUMN last_used_at DATE]

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