diff --git a/gitfunctionalitytables.sh b/gitfunctionalitytables.sh index b1160a181a290875287f380cc74114c8ae13b0a8..2aeefb93f92b926bbfcd6d9bab0547f3c74416c8 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 0824154191f54e4ec335b956f5a78e1f743af761..eb7678d094f11c9e92c8255b168e7401584a6a2a 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