mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fix SQL key
When updating the abuse_filter_history table, the sequence to use is the one on afh_id... And we were using the af_id one since 2009. Change-Id: I3e291c780119d74be5f47e745a8de13bda85486b
This commit is contained in:
parent
cbea2657b5
commit
bc875d8002
|
@ -2518,7 +2518,7 @@ class AbuseFilter {
|
|||
$afh_row['afh_flags'] = implode( ',', $flags );
|
||||
|
||||
$afh_row['afh_filter'] = $new_id;
|
||||
$afh_row['afh_id'] = $dbw->nextSequenceValue( 'abuse_filter_af_id_seq' );
|
||||
$afh_row['afh_id'] = $dbw->nextSequenceValue( 'abuse_filter_history_afh_id_seq' );
|
||||
|
||||
// Do the update
|
||||
$dbw->insert( 'abuse_filter_history', $afh_row, __METHOD__ );
|
||||
|
|
Loading…
Reference in a new issue