Index: trunk/phase3/maintenance/ora/tables.sql |
— | — | @@ -416,8 +416,10 @@ |
417 | 417 | log_action VARCHAR2(10) NOT NULL, |
418 | 418 | log_timestamp TIMESTAMP(6) WITH TIME ZONE NOT NULL, |
419 | 419 | log_user NUMBER REFERENCES &mw_prefix.mwuser(user_id) ON DELETE SET NULL, |
| 420 | + log_user_text VARCHAR2(255), |
420 | 421 | log_namespace NUMBER NOT NULL, |
421 | 422 | log_title VARCHAR2(255) NOT NULL, |
| 423 | + log_page NUMBER, |
422 | 424 | log_comment VARCHAR2(255), |
423 | 425 | log_params CLOB, |
424 | 426 | log_deleted NUMBER DEFAULT '0' NOT NULL |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -4072,7 +4072,8 @@ |
4073 | 4073 | } |
4074 | 4074 | $insertRows = array(); |
4075 | 4075 | foreach( $insertCats as $cat ) { |
4076 | | - $insertRows[] = array( 'cat_title' => $cat ); |
| 4076 | + $insertRows[] = array( 'cat_id' => $dbw->nextSequenceValue( 'category_cat_id_val' ), |
| 4077 | + 'cat_title' => $cat ); |
4077 | 4078 | } |
4078 | 4079 | $dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' ); |
4079 | 4080 | |
Index: trunk/phase3/includes/Category.php |
— | — | @@ -246,9 +246,11 @@ |
247 | 247 | } else { |
248 | 248 | # Let's be sure that the row exists in the table. We don't need to |
249 | 249 | # do this if we got the row from the table in initialization! |
| 250 | + $seqVal = $dbw->nextSequenceValue( 'category_cat_id_val' ); |
250 | 251 | $dbw->insert( |
251 | 252 | 'category', |
252 | | - array( 'cat_title' => $this->mName ), |
| 253 | + array( 'cat_id' => $seqVal, |
| 254 | + 'cat_title' => $this->mName ), |
253 | 255 | __METHOD__, |
254 | 256 | 'IGNORE' |
255 | 257 | ); |