2 /* each table to be backed up. includes the sql entry and fields */
\r
5 $sql['polls'] = 'SELECT question, created_date, choice1, choice2, choice3, choice4, choice5, choice6, choice7 FROM '.TABLE_PREFIX.'polls WHERE course_id=?';
\r
7 function polls_convert($row, $course_id, $table_id_map, $version) {
\r
10 $new_row[1] = $course_id;
\r
11 $new_row[2] = $row[0];
\r
12 $new_row[3] = $row[1];
\r
14 $new_row[5] = $row[2];
\r
16 $new_row[7] = $row[3];
\r
18 $new_row[9] = $row[4];
\r
20 $new_row[11] = $row[5];
\r
22 $new_row[13] = $row[6];
\r
24 $new_row[15] = $row[7];
\r
26 $new_row[17] = $row[8];
\r