Page MenuHomePhabricator

Populate sic_updated_timestamp for existing cases
Closed, ResolvedPublic

Description

Summary

We should provide a value for sic_updated_timestamp for existing rows in the cusi_case table

Background & Technical notes

  • Rows in cusi_case which have not been created or updated since T415054: Set a value for sic_updated_timestamp when creating or updating cases have no value for sic_updated_timestamp set
    • We should make a maintenance script to populate this column which is run in update.php
      • This maintenance script should set sic_updated_timestamp as the value of sic_created_timestamp, but skip the row if sic_updated_timestamp already has a value

Acceptance criteria

  • sic_updated_timestamp has a value set for all rows in cusi_case

Event Timeline

Change #1230896 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] SI: Populate sic_updated_timestamp for existing cusi_case rows

https://gerrit.wikimedia.org/r/1230896

Change #1230896 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] SI: Populate sic_updated_timestamp for existing cusi_case rows

https://gerrit.wikimedia.org/r/1230896

Mentioned in SAL (#wikimedia-operations) [2026-01-29T21:56:48Z] <Dreamy_Jazz> Ran foreachwikiindblist checkuser-suggested-investigations.dblist extensions/CheckUser/maintenance/populateSicUpdatedTimestamp.php for T415055

Verified this worked on enwiki:

> select count(*) from cusi_case where sic_updated_timestamp NOT LIKE '202%';
+----------+
| count(*) |
+----------+
|        0 |
+----------+