-
Notifications
You must be signed in to change notification settings - Fork 346
Bug: role creation makes dev database error out #3692
Copy link
Copy link
Open
Description
Atlas generated a migration based on my .hcl file, creating:
CREATE ROLE rolenameThe problem is, and I believe this is a bug, that when using a non-Docker dev database, every migrate comand fails because role already exists.
I know it's an easy fix to instead change the SQL migration to only create the role if it doesn't exist, but this was automatically created a while back. The only way to fix this issue (as I cannot simply make another migration 'fixing' this), was to go back in the migrations that were already applied on Production, adding the check if the role already exists.
I believe this is not the proposed way to do this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels