}
$insertRows = array();
foreach( $insertCats as $cat ) {
- $insertRows[] = array( 'cat_title' => $cat );
+ $insertRows[] = array( 'cat_id' => $dbw->nextSequenceValue( 'category_cat_id_val' ),
+ 'cat_title' => $cat );
}
$dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' );
} else {
# Let's be sure that the row exists in the table. We don't need to
# do this if we got the row from the table in initialization!
+ $seqVal = $dbw->nextSequenceValue( 'category_cat_id_val' );
$dbw->insert(
'category',
- array( 'cat_title' => $this->mName ),
+ array( 'cat_id' => $seqVal,
+ 'cat_title' => $this->mName ),
__METHOD__,
'IGNORE'
);
log_action VARCHAR2(10) NOT NULL,
log_timestamp TIMESTAMP(6) WITH TIME ZONE NOT NULL,
log_user NUMBER REFERENCES &mw_prefix.mwuser(user_id) ON DELETE SET NULL,
+ log_user_text VARCHAR2(255),
log_namespace NUMBER NOT NULL,
log_title VARCHAR2(255) NOT NULL,
+ log_page NUMBER,
log_comment VARCHAR2(255),
log_params CLOB,
log_deleted NUMBER DEFAULT '0' NOT NULL