From b0788d4e1d63fae7ec1e6e45aa271ec829f26a62 Mon Sep 17 00:00:00 2001 From: Gael Yvert <Gael.Yvert@ens-lyon.fr> Date: Fri, 21 Aug 2020 12:02:31 +0200 Subject: [PATCH] add roles table tracking, and explain the possible issue when retsoring it --- gitfunctionalitytables.sh | 1 + restorefunctionalitytables.sh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gitfunctionalitytables.sh b/gitfunctionalitytables.sh index b1160a1..2aeefb9 100755 --- a/gitfunctionalitytables.sh +++ b/gitfunctionalitytables.sh @@ -33,6 +33,7 @@ git add database/seeds/FunctionalityTrackingByIseedMenusTableSeeder.php git add database/seeds/FunctionalityTrackingByIseedMenuItemsTableSeeder.php git add database/seeds/FunctionalityTrackingByIseedPermissionsTableSeeder.php git add database/seeds/FunctionalityTrackingByIseedPermissionRoleTableSeeder.php +git add database/seeds/FunctionalityTrackingByIseedRolesTableSeeder.php git add database/seeds/FunctionalityTrackingByIseedSettingsTableSeeder.php git commit -m "Updated seeders for tables of application functionalities" diff --git a/restorefunctionalitytables.sh b/restorefunctionalitytables.sh index 0824154..eb7678d 100755 --- a/restorefunctionalitytables.sh +++ b/restorefunctionalitytables.sh @@ -4,7 +4,10 @@ # This script is for developers of MyLabStocks # # It uses seeder files produced by gitbreadmenus.sh -# to restore BREADs and MENUs +# to restore BREADs, MENUs, ROLEs and PERMISSIONs +# +# Note that you may have conflicts between your current USERS or USER_ROLES tables +# and the ROLES seeder, for example if the USERS table contains a role_id entry that is no longer present in the seeder. If this happens, edit your users and user_roles tables and run the seeders again. # ########################################## @@ -13,5 +16,6 @@ php artisan db:seed --class=FunctionalityTrackingByIseedDataRowsTableSeeder php artisan db:seed --class=FunctionalityTrackingByIseedMenusTableSeeder php artisan db:seed --class=FunctionalityTrackingByIseedMenuItemsTableSeeder php artisan db:seed --class=FunctionalityTrackingByIseedPermissionsTableSeeder +php artisan db:seed --class=FunctionalityTrackingByIseedRolesTableSeeder php artisan db:seed --class=FunctionalityTrackingByIseedPermissionRoleTableSeeder php artisan db:seed --class=FunctionalityTrackingByIseedSettingsTableSeeder -- GitLab