mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
Changes throughout Moodle to remove any reserved words from the
Moodle tables. ie user -> userid in many tables, plus in user_students start -> starttime and end -> endtime I've just done all this as carefully as I could ... I don't think I missed anything but it's pretty intensive work and I'd be fooling myself if I didn't think I'd missed a couple. Note that this version should pretty much be able to bootstrap itself using PostgreSQL now ... but this is untested
This commit is contained in:
parent
1f48942e7d
commit
ebc3bd2b24
68 changed files with 277 additions and 461 deletions
|
@ -26,7 +26,7 @@
|
|||
// make some easy ways to access the entries.
|
||||
if ( $eee = get_records("journal_entries", "journal", $journal->id)) {
|
||||
foreach ($eee as $ee) {
|
||||
$entrybyuser[$ee->user] = $ee;
|
||||
$entrybyuser[$ee->userid] = $ee;
|
||||
$entrybyentry[$ee->id] = $ee;
|
||||
}
|
||||
|
||||
|
@ -67,14 +67,14 @@
|
|||
$newentry->mailed = 0; // Make sure mail goes out (again, even)
|
||||
$newentry->id = $num;
|
||||
if (! update_record("journal_entries", $newentry)) {
|
||||
notify("Failed to update the journal feedback for user $entry->user");
|
||||
notify("Failed to update the journal feedback for user $entry->userid");
|
||||
} else {
|
||||
$count++;
|
||||
}
|
||||
$entrybyuser[$entry->user]->rating = $vals[r];
|
||||
$entrybyuser[$entry->user]->comment = $vals[c];
|
||||
$entrybyuser[$entry->user]->teacher = $USER->id;
|
||||
$entrybyuser[$entry->user]->timemarked = $timenow;
|
||||
$entrybyuser[$entry->userid]->rating = $vals[r];
|
||||
$entrybyuser[$entry->userid]->comment = $vals[c];
|
||||
$entrybyuser[$entry->userid]->teacher = $USER->id;
|
||||
$entrybyuser[$entry->userid]->timemarked = $timenow;
|
||||
}
|
||||
}
|
||||
add_to_log($course->id, "journal", "update feedback", "report.php?id=$cm->id", "$count users");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue