delinquent_files/demon.php

changeset 10
d80db6c7a442
parent 9
43902b1af1b9
--- a/delinquent_files/demon.php	Wed Mar 06 02:34:25 2024 +0100
+++ b/delinquent_files/demon.php	Wed Mar 06 02:54:34 2024 +0100
@@ -616,7 +616,7 @@
 					'namespace' => $usage->gil_page_namespace_id ,
 					'timestamp' => $ts ,
 					'comment' => $comment ,
-					'log_id' => 0, # -1 ,
+					'log_id' => substr($ts,0,10), # was: -1 (into unsigned field!); db has a unique on action+page+log_id, so fake it hard
 					'log_timestamp' => $ts ,
 					'user' => $user ,
 					'done' => 0 ,

mercurial