| @@ 82-89 (lines=8) @@ | ||
| 79 | 'user_timestamp', |
|
| 80 | 'usertext_timestamp', |
|
| 81 | ]; |
|
| 82 | foreach ( $oldIndexes as $index ) { |
|
| 83 | if ( $db->indexExists( 'text', $index, __METHOD__ ) ) { |
|
| 84 | $this->output( "Dropping index $index from the text table..." ); |
|
| 85 | $db->query( "DROP INDEX " . $db->addIdentifierQuotes( $index ) |
|
| 86 | . " ON " . $db->tableName( 'text' ) ); |
|
| 87 | $this->output( "done.\n" ); |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | $oldFields = [ |
|
| 92 | 'old_namespace', |
|
| @@ 101-108 (lines=8) @@ | ||
| 98 | 'old_minor_edit', |
|
| 99 | 'inverse_timestamp', |
|
| 100 | ]; |
|
| 101 | foreach ( $oldFields as $field ) { |
|
| 102 | if ( $db->fieldExists( 'text', $field, __METHOD__ ) ) { |
|
| 103 | $this->output( "Dropping the $field field from the text table..." ); |
|
| 104 | $db->query( "ALTER TABLE " . $db->tableName( 'text' ) |
|
| 105 | . " DROP COLUMN " . $db->addIdentifierQuotes( $field ) ); |
|
| 106 | $this->output( "done.\n" ); |
|
| 107 | } |
|
| 108 | } |
|
| 109 | $this->output( "Done!\n" ); |
|
| 110 | } |
|
| 111 | } |
|