Index: trunk/phase3/maintenance/ora/tables.sql |
— | — | @@ -185,6 +185,13 @@ |
186 | 186 | CREATE INDEX &mw_prefix.externallinks_i02 ON &mw_prefix.externallinks (el_to, el_from); |
187 | 187 | CREATE INDEX &mw_prefix.externallinks_i03 ON &mw_prefix.externallinks (el_index); |
188 | 188 | |
| 189 | +CREATE TABLE &mw_prefix.external_user ( |
| 190 | + eu_local_id NUMBER NOT NULL, |
| 191 | + eu_external_id varchar2(255) NOT NULL |
| 192 | +); |
| 193 | +ALTER TABLE &mw_prefix.external_user ADD CONSTRAINT &mw_prefix.external_user_pk PRIMARY KEY (eu_local_id); |
| 194 | +CREATE UNIQUE INDEX &mw_prefix.external_user_u01 ON &mw_prefix.external_user (eu_external_id); |
| 195 | + |
189 | 196 | CREATE TABLE &mw_prefix.langlinks ( |
190 | 197 | ll_from NUMBER NOT NULL REFERENCES &mw_prefix.page (page_id) ON DELETE CASCADE, |
191 | 198 | ll_lang VARCHAR2(20), |
Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -779,11 +779,7 @@ |
780 | 780 | $this->ignoreErrors( $ignore ); |
781 | 781 | } |
782 | 782 | else { |
783 | | - $message = "A database error has occurred\n" . |
784 | | - "Query: $sql\n" . |
785 | | - "Function: $fname\n" . |
786 | | - "Error: $errno $error\n"; |
787 | | - throw new DBUnexpectedError( $this, $message ); |
| 783 | + throw new DBQueryError($this, $error, $errno, $sql, $fname); |
788 | 784 | } |
789 | 785 | } |
790 | 786 | |