Issue Details (XML | Word | Printable)

Key: MDL-17427
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-17458

upgrade log table - replacement for current file logging

Created: 28/Nov/08 07:10 AM   Updated: 01/Feb/09 05:07 AM
Return to search
Component/s: Administration
Affects Version/s: 2.0
Fix Version/s: 2.0

Issue Links:
Relates
 

Participants: Petr Skoda
Security Level: None
Difficulty: Easy
Resolved date: 01/Feb/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
We already ahve raw upgrade loggin, but we need something more user friendly. I am proposing to add a new upgrade_log table which would store important info from upgrade process:
* start date, version before upgrade
* notices/important information
* upgrade failures
* end date, version

On of the first customers would be MDL-16999 - information about changes in Data mod

Implementation:
1/ new upgrade_log table - fields: type, date, string, component, etc...
2/ add upgrade functions -upgrade_log_start(), upgrade_log_info(), upgrade_log_failure() etc.


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda committed 4 files to 'Moodle CVS' - 28/Nov/08 07:14 AM
MDL-17405 moving Data mod upgrade notification to proper place (upgrade.php) - better notification will be implemented in MDL-17427
MODIFY mod/data/version.php   Rev. 1.41    (+2 -2 lines)
MODIFY mod/data/lib.php   Rev. 1.210    (+1 -37 lines)
MODIFY admin/environment.xml   Rev. 1.39    (+0 -2 lines)
MODIFY mod/data/db/upgrade.php   Rev. 1.24    (+22 -1 lines)
Petr Skoda committed 5 files to 'Moodle CVS' - 11/Jan/09 07:18 PM
MDL-17427 - removed old file based logging from ugprade - going to add new upgrade logging later
MODIFY lib/blocklib.php   Rev. 1.154    (+1 -7 lines)
MODIFY lib/Attic/locallib.php   Rev. 1.22    (+0 -3 lines)
MODIFY lib/adminlib.php   Rev. 1.304    (+8 -85 lines)
MODIFY index.php   Rev. 1.218    (+3 -3 lines)
MODIFY admin/Attic/cliupgrade.php   Rev. 1.35    (+0 -3 lines)
Petr Skoda committed 3 files to 'Moodle CVS' - 30/Jan/09 04:50 AM
MDL-17427 new upgrade log table
MODIFY lib/db/upgrade.php   Rev. 1.270    (+32 -1 lines)
MODIFY lib/db/install.xml   Rev. 1.193    (+23 -3 lines)
MODIFY version.php   Rev. 1.982    (+1 -1 lines)
Petr Skoda committed 20 files to 'Moodle CVS' - 30/Jan/09 04:58 AM
MDL-17427 another round of refactoring of upgrade related functions - this should be final now I hope ;-)
MODIFY mod/choice/db/install.php   Rev. 1.2    (+7 -7 lines)
MODIFY mod/survey/db/install.php   Rev. 1.2    (+8 -8 lines)
MODIFY lib/adminlib.php   Rev. 1.317    (+11 -11 lines)
MODIFY mod/data/db/install.php   Rev. 1.2    (+9 -9 lines)
MODIFY mod/label/db/install.php   Rev. 1.2    (+3 -3 lines)
MODIFY admin/index.php   Rev. 1.363    (+6 -6 lines)
MODIFY mod/assignment/db/install.php   Rev. 1.2    (+6 -6 lines)
MODIFY mod/chat/db/install.php   Rev. 1.2    (+6 -6 lines)
MODIFY mod/glossary/db/install.php   Rev. 1.2    (+15 -15 lines)
MODIFY mod/feedback/db/install.php   Rev. 1.2    (+6 -6 lines)
MODIFY mod/scorm/db/install.php   Rev. 1.2    (+5 -5 lines)
MODIFY mod/resource/db/install.php   Rev. 1.2    (+4 -4 lines)
MODIFY lib/Attic/locallib.php   Rev. 1.26    (+2 -2 lines)
MODIFY lib/db/install.php   Rev. 1.7    (+19 -19 lines)
MODIFY lib/blocklib.php   Rev. 1.157    (+3 -3 lines)
MODIFY admin/report/unittest/test_tables.php   Rev. 1.3    (+1 -1 lines)
MODIFY mod/quiz/db/install.php   Rev. 1.2    (+13 -13 lines)
MODIFY admin/Attic/cliupgrade.php   Rev. 1.36    (+3 -3 lines)
MODIFY mod/forum/db/install.php   Rev. 1.2    (+13 -13 lines)
MODIFY mod/lesson/db/install.php   Rev. 1.2    (+4 -4 lines)
Petr Skoda committed 3 files to 'Moodle CVS' - 30/Jan/09 05:21 AM
MDL-17427 oops - forgot to add version field, sorry
MODIFY lib/db/upgrade.php   Rev. 1.271    (+4 -3 lines)
MODIFY version.php   Rev. 1.983    (+1 -1 lines)
MODIFY lib/db/install.xml   Rev. 1.194    (+3 -2 lines)
Petr Skoda committed 3 files to 'Moodle CVS' - 30/Jan/09 06:17 AM
MDL-17427 moving upgrade code from adminlib to upgradelib + new upgrade logging functions
MODIFY admin/index.php   Rev. 1.364    (+2 -1 lines)
MODIFY lib/adminlib.php   Rev. 1.318    (+2 -688 lines)
ADD lib/upgradelib.php   Rev. 1.1    (+0 -0 lines)
Petr Skoda committed 1 file to 'Moodle CVS' - 02/Feb/09 01:42 AM
MDL-17427 fixed regressions
MODIFY admin/index.php   Rev. 1.369    (+2 -18 lines)
Petr Skoda committed 1 file to 'Moodle CVS' - 02/Feb/09 01:50 AM
MDL-17427 more cleanup
MODIFY admin/index.php   Rev. 1.370    (+5 -3 lines)