WeBWorK::Utils::CourseIntegrityCheck - check that course database tables agree with database schema and that course directory structure is correct.
Checks the course tables in the mysql database and ensures that they are the same as the ones specified by the databaseLayout
Adds schema tables to the database that had been missing from the database.
Checks the course tables in the mysql database and insures that they are the same as the ones specified by the databaseLayout
Checks the fields in the table in the mysql database and insures that they are the same as the ones specified by the databaseLayout
Checks the course directories to make sure they exist and have the correct permissions.
Check to see if all course directories exist and have the correct permissions.
If a directory does not exist, then it is copied from the model course if the corresponding directory exists in the model course, and is created otherwise.
If the permissions are not correct, then an attempt is made to correct the permissions. The permissions are expected to match the course root directory. If the permissions of the course root directory are not correct, then that will need to be manually fixed. This method does not check that.