forked from HPR/hpr_generator
		
	Convert twat episode page queries from SQLite to MySQL
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
| 		WITH episode_maxmin AS ( | ||||
| 					SELECT MAX(id) AS \'latest\', MIN(id) AS \'earliest\', ? AS \'id\'  | ||||
| 					FROM twat_eps AS eps | ||||
| 					WHERE eps.date < date (\'now\', \'+1 days\') | ||||
| 					WHERE eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY) | ||||
| 		), | ||||
| 		episode_date AS ( | ||||
| 			SELECT eps.date  | ||||
| @@ -26,7 +26,7 @@ | ||||
| 			FROM twat_eps AS eps | ||||
| 			INNER JOIN episode_date | ||||
| 				ON eps.date > episode_date.date | ||||
| 			WHERE eps.date < date (\'now\') | ||||
| 			WHERE eps.date < NOW()  | ||||
| 		) | ||||
| 		SELECT eps.id, eps.date, eps.title, eps.duration,  | ||||
| 			   eps.summary, eps.notes, eps.explicit, eps.license,  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user