array( 'addField', 'uploadstash', 'us_chunk_inx', 'patch-uploadstash_chunk.sql' ),
array( 'addfield', 'job', 'job_timestamp', 'patch-jobs-add-timestamp.sql' ),
array( 'dropAncientTables' ),
+ array( 'cleanupTextTable' ),
);
}
'links', // 1.4
'linkscc', // 1.4
'old', // 1.4
+ 'oldwatchlist', // pre 1.1?
'trackback', // 1.19
'user_rights', // 1.5
'validate', // 1.6
}
}
}
+
+ protected function cleanupTextTable() {
+ $this->output( "Cleaning up text table\n" );
+
+ /*$oldIndexes = array(
+ 'old_namespace',
+ 'old_timestamp',
+ 'name_title_timestamp',
+ 'user_timestamp',
+ 'usertext_timestamp',
+ );*/
+ $this->dropIndex( 'text', 'old_namespace', 'patch-drop_old_text_indexes.sql' );
+
+ /*$oldFields = array(
+ 'old_namespace',
+ 'old_title',
+ 'old_comment',
+ 'old_user',
+ 'old_user_text',
+ 'old_timestamp',
+ 'old_minor_edit',
+ 'inverse_timestamp',
+ );*/
+ $this->dropField( 'text', 'old_namespace', 'patch-drop_old_text_fields.sql' );
+ }
+
}
--- /dev/null
+ALTER TABLE /*_*/text DROP COLUMN old_namespace;
+ALTER TABLE /*_*/text DROP COLUMN old_title;
+ALTER TABLE /*_*/text DROP COLUMN old_comment;
+ALTER TABLE /*_*/text DROP COLUMN old_user;
+ALTER TABLE /*_*/text DROP COLUMN old_user_text;
+ALTER TABLE /*_*/text DROP COLUMN old_timestamp;
+ALTER TABLE /*_*/text DROP COLUMN old_minor_edit;
+ALTER TABLE /*_*/text DROP COLUMN inverse_timestamp;
\ No newline at end of file
--- /dev/null
+DROP INDEX old_namespace ON /*_*/text;
+DROP INDEX old_timestamp ON /*_*/text;
+DROP INDEX name_title_timestamp ON /*_*/text;
+DROP INDEX user_timestamp ON /*_*/text;
+DROP INDEX usertext_timestamp ON /*_*/text;
\ No newline at end of file