Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -192,6 +192,7 @@ |
193 | 193 | array( 'modifyField', 'user', 'ug_group', 'patch-ug_group-length-increase.sql' ), |
194 | 194 | array( 'addField', 'uploadstash', 'us_chunk_inx', 'patch-uploadstash_chunk.sql' ), |
195 | 195 | array( 'addfield', 'job', 'job_timestamp', 'patch-jobs-add-timestamp.sql' ), |
| 196 | + array( 'dropAncientTables' ), |
196 | 197 | ); |
197 | 198 | } |
198 | 199 | |
— | — | @@ -853,4 +854,25 @@ |
854 | 855 | $this->applyPatch( 'patch-user-newtalk-timestamp-null.sql' ); |
855 | 856 | $this->output( "done.\n" ); |
856 | 857 | } |
| 858 | + |
| 859 | + protected function dropAncientTables() { |
| 860 | + $ancientTables = array( |
| 861 | + 'blobs', // 1.4 |
| 862 | + 'brokenlinks', // 1.4 |
| 863 | + 'cur', // 1.4 |
| 864 | + 'ip_blocks_old', // Temporary in 1.6 |
| 865 | + 'links', // 1.4 |
| 866 | + 'linkscc', // 1.4 |
| 867 | + 'old', // 1.4 |
| 868 | + 'trackback', // 1.19 |
| 869 | + 'user_rights', // 1.5 |
| 870 | + 'validate', // 1.6 |
| 871 | + ); |
| 872 | + |
| 873 | + foreach( $ancientTables as $table ) { |
| 874 | + if ( $this->db->tableExists( $table, __METHOD__ ) ) { |
| 875 | + $this->db->dropTable( $table, __METHOD__ ); |
| 876 | + } |
| 877 | + } |
| 878 | + } |
857 | 879 | } |