-
Notifications
You must be signed in to change notification settings - Fork 417
Fix: Role Assignment Failure During Bootstrap Due to FK Constraint #1175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Veeresh K <[email protected]>
…QL index size error Signed-off-by: Veeresh K <[email protected]>
Signed-off-by: Veeresh K <[email protected]>
Signed-off-by: Veeresh K <[email protected]>
Signed-off-by: Veeresh K <[email protected]>
c0af6fb to
cdf8466
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nmveeresh , the functionality for changing the length of URL and slug column needs to be accompanied with an alembic script so that the existing columns are also resized. Currently, it creates smaller columns in Gateways table when the db is empty, but does not resize when the table is already present.
Can you split this PR into two? One just for the PK fix and a separate PR for the key length change along with the alembic script?
Signed-off-by: Madhav Kandukuri <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted changes to slug and url lengths in gateways table. Those will be part of a separate PR. This can be merged.
Bootstrap Role Assignment Fix
Overview
This update fixes a bug in the bootstrap process where assigning the platform_admin role to the admin user fails due to a foreign key constraint violation. Previously, the granted_by field was set to "system", which violates the FK constraint referencing email_users.email.
Changes
Impact
Testing