}
$insertRows = array();
foreach( $insertCats as $cat ) {
- $insertRows[] = array( 'cat_id' => $dbw->nextSequenceValue( 'category_cat_id_val' ),
+ $insertRows[] = array( 'cat_id' => $dbw->nextSequenceValue( 'category_id_seq' ),
'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' );
+ $seqVal = $dbw->nextSequenceValue( 'category_id_seq' );
$dbw->insert(
'category',
array( 'cat_id' => $seqVal,
CREATE INDEX &mw_prefix.categorylinks_i01 ON &mw_prefix.categorylinks (cl_to,cl_sortkey,cl_from);
CREATE INDEX &mw_prefix.categorylinks_i02 ON &mw_prefix.categorylinks (cl_to,cl_timestamp);
-CREATE SEQUENCE category_cat_id_val;
+CREATE SEQUENCE category_id_seq;
CREATE TABLE &mw_prefix.category (
cat_id NUMBER NOT NULL,
cat_title VARCHAR2(255) NOT NULL,