First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
include "db.php";
|
||||
|
||||
$school_num = 18541;
|
||||
$cutoff_date = '2026-08-01';
|
||||
|
||||
db_query("delete from user_account where school_num = $school_num AND transaction_datetime < '$cutoff_date 00:00:00'");
|
||||
db_query("delete from user_online_payments where school_num = $school_num AND transaction_datetime < '$cutoff_date 00:00:00'");
|
||||
|
||||
$query = "DELETE FROM hotlunch_order_items " .
|
||||
"WHERE school_num = $school_num " .
|
||||
"AND order_num IN (SELECT record_num FROM hotlunch_order_header " .
|
||||
"WHERE school_num = $school_num " .
|
||||
"AND added_date < '$cutoff_date')";
|
||||
db_query($query);
|
||||
|
||||
db_query("DELETE FROM hotlunch_order_header WHERE school_num = $school_num AND added_date < '$cutoff_date'");
|
||||
|
||||
db_query("DELETE FROM hotlunch_order_items_save WHERE school_num = $school_num AND item_added_date < '$cutoff_date'");
|
||||
db_query("DELETE FROM hotlunch_order_log WHERE school_num = $school_num AND added_date < '$cutoff_date'");
|
||||
|
||||
db_query("DELETE FROM user_online_payments WHERE school_num = $school_num AND transaction_datetime < '$cutoff_date 00:00:00'");
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user