BookStack/database/migrations
Dan Brown 5f1ee5fb0e
Removed role 'name' field from database
The 'name' field was really redundant and caused confusion in the
codebase, since the 'Display' name is often used and we have a
'system_name' for the admin and public role.

This fixes #2032, Where external auth group matching has confusing
behaviour as matching was done against the display_name, if no
external_auth field is set, but only roles with a match 'name' field
would be considered.

This also fixes and error where the role users migration, on role
delete, would not actually fire due to mis-matching http body keys.
Looks like this has been an issue from the start. Added some testing to
cover. Fixes #2211.

Also converted phpdoc to typehints in many areas of the reviewed code
during the above.
2020-08-04 14:55:01 +01:00
..
.gitkeep
2014_10_12_000000_create_users_table.php
2014_10_12_100000_create_password_resets_table.php
2015_07_12_114933_create_books_table.php Removed old fulltext indexes from migrations 2018-09-23 00:30:48 +01:00
2015_07_12_190027_create_pages_table.php Removed old fulltext indexes from migrations 2018-09-23 00:30:48 +01:00
2015_07_13_172121_create_images_table.php
2015_07_27_172342_create_chapters_table.php Removed old fulltext indexes from migrations 2018-09-23 00:30:48 +01:00
2015_08_08_200447_add_users_to_entities.php
2015_08_09_093534_create_page_revisions_table.php
2015_08_16_142133_create_activities_table.php
2015_08_29_105422_add_roles_and_permissions.php
2015_08_30_125859_create_settings_table.php
2015_08_31_175240_add_search_indexes.php Removed old fulltext indexes from migrations 2018-09-23 00:30:48 +01:00
2015_09_04_165821_create_social_accounts_table.php
2015_09_05_164707_add_email_confirmation_table.php
2015_11_21_145609_create_views_table.php
2015_11_26_221857_add_entity_indexes.php
2015_12_05_145049_fulltext_weighting.php Removed old fulltext indexes from migrations 2018-09-23 00:30:48 +01:00
2015_12_07_195238_add_image_upload_types.php Re-structured the app code to be feature based rather than code type based 2018-09-25 12:30:50 +01:00
2015_12_09_195748_add_user_avatars.php
2016_01_11_210908_add_external_auth_to_users.php
2016_02_25_184030_add_slug_to_revisions.php
2016_02_27_120329_update_permissions_and_roles.php
2016_02_28_084200_add_entity_access_controls.php
2016_03_09_203143_add_page_revision_types.php
2016_03_13_082138_add_page_drafts.php
2016_03_25_123157_add_markdown_support.php
2016_04_09_100730_add_view_permissions_to_roles.php
2016_04_20_192649_create_joint_permissions_table.php Removed joint_permission generation in older migration 2018-09-20 16:03:01 +01:00
2016_05_06_185215_create_tags_table.php
2016_07_07_181521_add_summary_to_page_revisions.php
2016_09_29_101449_remove_hidden_roles.php
2016_10_09_142037_create_attachments_table.php
2017_01_21_163556_create_cache_table.php
2017_01_21_163602_create_sessions_table.php
2017_03_19_091553_create_search_index_table.php Removed search indexing from migration path to prevent Bookshelf issue 2018-09-23 13:25:12 +01:00
2017_04_20_185112_add_revision_counts.php
2017_07_02_152834_update_db_encoding_to_ut8mb4.php
2017_08_01_130541_create_comments_table.php
2017_08_29_102650_add_cover_image_display.php Converted books view setting to user setting 2017-12-06 16:34:26 +00:00
2018_07_15_173514_add_role_external_auth_id.php Added ability to set custom ldap group -> role mapping 2018-07-15 19:34:42 +01:00
2018_08_04_115700_create_bookshelves_table.php Re-structured the app code to be feature based rather than code type based 2018-09-25 12:30:50 +01:00
2019_07_07_112515_add_template_support.php Started work on API token controls 2019-12-29 13:02:26 +00:00
2019_08_17_140214_add_user_invites_table.php Start user invite system 2019-08-17 15:52:33 +01:00
2019_12_29_120917_add_api_auth.php Removed token 'client' text, avoid confusion w/ oAuth 2019-12-29 20:07:28 +00:00
2020_08_04_111754_drop_joint_permissions_id.php Removed joint_permissions auto_increment id 2020-08-04 13:02:31 +01:00
2020_08_04_131052_remove_role_name_field.php Removed role 'name' field from database 2020-08-04 14:55:01 +01:00