Skip to content

Commit 5471f15

Browse files
committed
Fix School Listing Import
1 parent 0daa11a commit 5471f15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/processDump.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@
240240
// for quarters are well defined. We shall no longer update numeric schools.
241241
$schoolQuery = "INSERT INTO schools (code)
242242
SELECT acad_group FROM classes
243-
WHERE acad_group NOT IN(SELECT code FROM schools WHERE code IS NOT NULL)";
243+
WHERE acad_group NOT IN(SELECT code FROM schools WHERE code IS NOT NULL)
244+
ON DUPLICATE KEY UPDATE code = code";
244245
$parser->debug("... Updating schools");
245246
if (!mysqli_query($dbConn, $schoolQuery)) {
246247
echo("*** Error: Failed to update school listings\n");

0 commit comments

Comments
 (0)