Convert episodes page queries from SQLite to MySQL

This commit is contained in:
Roan Horning 2022-10-21 19:52:53 -04:00
parent e1b0189275
commit 4af117fb7a
Signed by untrusted user: rho_n
GPG Key ID: 234AEF20B72D5769

View File

@ -19,8 +19,8 @@
FROM eps FROM eps
INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN hosts ON eps.hostid = hosts.hostid
INNER JOIN miniseries ON eps.series = miniseries.id INNER JOIN miniseries ON eps.series = miniseries.id
WHERE eps.date < date(\'now\', \'+1 days\') WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY)
ORDER BY eps.id + 0 DESC ORDER BY eps.id DESC
') ')
%--> %-->
<!--% show_summary(episodes) %--> <!--% show_summary(episodes) %-->
@ -42,7 +42,7 @@
FROM twat_eps as eps FROM twat_eps as eps
INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN hosts ON eps.hostid = hosts.hostid
INNER JOIN miniseries ON eps.series = miniseries.id INNER JOIN miniseries ON eps.series = miniseries.id
ORDER BY eps.id + 0 DESC ORDER BY eps.id DESC
') ')
%--> %-->
<!--% twat_show_summary(twat_episode) %--> <!--% twat_show_summary(twat_episode) %-->