mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Pretty print SQL
This commit is contained in:
parent
31a8bc2d6c
commit
26a24cdbe2
17 changed files with 316 additions and 82 deletions
|
@ -3,5 +3,10 @@
|
|||
require_once('/standardebooks.org/web/lib/Core.php');
|
||||
|
||||
// Delete unconfirmed newsletter subscribers who are more than a week old
|
||||
Db::Query('DELETE from NewsletterSubscriptions where IsConfirmed = false and datediff(utc_timestamp(), Created) >= 7');
|
||||
Db::Query('
|
||||
DELETE
|
||||
from NewsletterSubscriptions
|
||||
where IsConfirmed = false
|
||||
and datediff(utc_timestamp(), Created) >= 7
|
||||
');
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue