~ubuntu-branches/ubuntu/trusty/moodle/trusty-proposed

« back to all changes in this revision

Viewing changes to mod/assign/db/upgrade.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130909152235-d9njbvgugzm380an
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
        if (!$dbman->field_exists($table, $field)) {
222
222
            // OK safe to cleanup duplicates here.
223
223
 
224
 
            $sql = 'SELECT assignment, userid, groupid from {assign_submission} GROUP BY assignment, userid, groupid HAVING (count(id) > 1)';
 
224
            $sql = 'SELECT assignment, userid, groupid from {assign_submission} ' .
 
225
                   'GROUP BY assignment, userid, groupid HAVING (count(id) > 1)';
225
226
            $badrecords = $DB->get_recordset_sql($sql);
226
227
 
227
228
            foreach ($badrecords as $badrecord) {
424
425
    // Moodle v2.5.0 release upgrade line.
425
426
    // Put any upgrade step following this.
426
427
 
427
 
 
428
428
    return true;
429
429
}
430
430