Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -808,7 +808,7 @@ |
809 | 809 | } |
810 | 810 | |
811 | 811 | $dbw = wfGetDB( DB_MASTER ); |
812 | | - $cul_id = $dbw->nextSequenceValue( 'cu_log_cul_id' ); |
| 812 | + $cul_id = $dbw->nextSequenceValue( 'cu_log_cul_id_seq' ); |
813 | 813 | $dbw->insert( 'cu_log', |
814 | 814 | array( |
815 | 815 | 'cul_id' => $cul_id, |
Index: trunk/extensions/CheckUser/cu_log_import.inc |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | |
71 | 71 | if( $db ) { |
72 | 72 | $fields = array( |
73 | | - 'cul_id' => $db->nextSequenceValue( 'cu_log_cul_id' ), |
| 73 | + 'cul_id' => $db->nextSequenceValue( 'cu_log_cul_id_seq' ), |
74 | 74 | 'cul_timestamp' => $db->timestamp( $data['timestamp'] ), |
75 | 75 | 'cul_user' => $user->getID(), |
76 | 76 | 'cul_user_text' => $user->getName(), |
Index: trunk/extensions/CheckUser/cu_log.pg.sql |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | |
5 | 5 | CREATE SEQUENCE cu_log_cul_id_seq; |
6 | 6 | CREATE TABLE cu_log ( |
7 | | - cul_id INTEGER NOT NULL DEFAULT nextval('cu_log_cul_id'), |
| 7 | + cul_id INTEGER NOT NULL DEFAULT nextval('cu_log_cul_id_seq'), |
8 | 8 | cul_timestamp TIMESTAMPTZ, |
9 | 9 | cul_user INTEGER NULL REFERENCES mwuser(user_id) ON DELETE SET NULL, |
10 | 10 | cul_user_text TEXT NOT NULL, |