Upgrading to 2024.9.6
The newly added user groups requires database schema modifications that may not be backwards compatible.
The role_members table receives a new rel_resource column which is generated based on the rel_user column.
After the upgrade, you need to either delete the rel_user column or drop the requirement the rel_user column is populated.
Before the Upgrade
|
Since the database schema will be modified, we recommend you create a backup just in case. |
Run the following commands based on your database:
MySQL
ALTER TABLE role_members
ADD COLUMN rel_resource TEXT;
ALTER TABLE role_members
DROP PRIMARY KEY;
ALTER TABLE role_members
ADD PRIMARY KEY (rel_resource, rel_role);
ALTER TABLE role_members
MODIFY rel_user BIGINT UNSIGNED NULL;