View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008420 | mantisbt | administration | public | 2007-09-28 13:45 | 2008-07-30 18:06 |
Reporter | jreese | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0008420: Mantis should inform administrators to update schema. | ||||
Description | Especially for CVS-based installations, or those testing alpha/beta versions, it would be very useful to have Mantis check the current database configuration against the defined schema version. This would be reliant on the proposed features to password protect the admin/ section, in order to allow those files to stay in constant existence. When core.php runs, it should check the schema defined in admin/schema.php, and compare that to the database configuration. If the database is out of sync with the schema definition, then a global variable ($g_schema_old perhaps) should be set. In html_page_top1() or html_page_top2(), it should check for this flag, and display a red message above (or in) the status line with the username/time. This message should also include a link to admin/install.php for simplicity. Naturally, the system should make sure the user is an administrator before running the checks. If the system cannot find or read admin/schema.php, then it should just remain silent. Perhaps a token could be used as well, so that it does not check on every page load, but every 30-60 minutes instead. | ||||
Tags | No tags attached. | ||||
I've just now realized that this message is already output, but only on the login page and only if the admin folder still exists (and it technically shouldn't). I still think it would be prudent to make changes to the way this operates so that the message displays at the top of every page if the current user is an admin. |
|
What about redirecting the admin user to the upgrade page and preventing regular users from until an admin has performed the upgrade? |
|