From 6ce273baf56feaf8be9cf699f31359fb911de017 Mon Sep 17 00:00:00 2001 From: JJ <3617814+joligario@users.noreply.github.com> Date: Mon, 10 May 2021 12:13:58 -0400 Subject: [PATCH] [SQL] Tweak SQL from #1339 [skip ci] (#1348) --- utils/sql/git/required/2021_04_28_idle_pathing.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/sql/git/required/2021_04_28_idle_pathing.sql b/utils/sql/git/required/2021_04_28_idle_pathing.sql index c146b9f24..2249163fc 100644 --- a/utils/sql/git/required/2021_04_28_idle_pathing.sql +++ b/utils/sql/git/required/2021_04_28_idle_pathing.sql @@ -7,7 +7,7 @@ ALTER TABLE spawn2 ADD COLUMN path_when_zone_idle tinyint(1) NOT NULL DEFAULT 0 -- The new flag path_when_zone_idle is the new mechanism, and allows any moving -- mob, not just those on grids, to path while the zone is idle. UPDATE spawn2 s -LEFT JOIN zone z on z.short_name = s.zone -LEFT JOIN grid g on g.id = s.pathgrid AND g.zoneid = z.zoneidnumber +LEFT JOIN zone z ON z.short_name = s.zone +LEFT JOIN grid g ON g.id = s.pathgrid AND g.zoneid = z.zoneidnumber SET path_when_zone_idle = 1 -WHERE pathgrid != 0 AND g.type in (4, 6) +WHERE pathgrid != 0 AND g.type IN (4, 6);