]> BookStack Code Mirror - bookstack/commit
Removed joint_permissions auto_increment id
authorDan Brown <redacted>
Tue, 4 Aug 2020 12:02:31 +0000 (13:02 +0100)
committerDan Brown <redacted>
Tue, 4 Aug 2020 12:02:31 +0000 (13:02 +0100)
commita9f02550f04deb941a1fb57bc1341309be8131e7
tree5f8cf1b891a3921caac864e3fd9d96740dd47ed7
parent7590ecd37c49b12fb6cf2ad251b1e65c1ea7d1ee
Removed joint_permissions auto_increment id

Removed auto_incrementing id and set a primary key of the [role_id,
entity_type, entity_id, action] instead since this table could recieve a
lot of activity, especially when permission regeneration was automated,
leading to very high auto_increment counts which could max out the
integer limit.

Also updated some RolesTest comment endpoints to align with
recent route changes.

Should fix #2091
app/Auth/Permissions/JointPermission.php
database/migrations/2020_08_04_111754_drop_joint_permissions_id.php [new file with mode: 0644]
tests/Permissions/RolesTest.php