Skip to content

0012_add_updated_at.sql hardcodes role name to postgres #77

@dthakur

Description

@dthakur

alter function set_updated_at() owner to postgres;

If the database does not have a postgres role, the migration fails.

/app/node_modules/pg-node-migrations/dist/migrate.js:108
            const error = new Error(`Migration failed. Reason: ${e.message}`);
                          ^

Error: Migration failed. Reason: An error occurred running 'add_updated_at'. Rolled back this migration. No further migrations were run. Reason: role "postgres" does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions