X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=includes%2Finstaller%2FSqliteUpdater.php;h=7c3878ce44ee211dc954905814419fb75f38178b;hb=c29909e59fd89d9fc65a299687ad2aa2df995acc;hp=2f39912c581ecab99f494a2f5b6bec8746795cfe;hpb=d4a5e446abe1e529df7cc271f1eded35dbadf423;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php index 2f39912c58..7c3878ce44 100644 --- a/includes/installer/SqliteUpdater.php +++ b/includes/installer/SqliteUpdater.php @@ -43,18 +43,16 @@ class SqliteUpdater extends DatabaseUpdater { // 1.15 [ 'addTable', 'change_tag', 'patch-change_tag.sql' ], - [ 'addTable', 'tag_summary', 'patch-tag_summary.sql' ], - [ 'addTable', 'valid_tag', 'patch-valid_tag.sql' ], // 1.16 [ 'addTable', 'user_properties', 'patch-user_properties.sql' ], [ 'addTable', 'log_search', 'patch-log_search.sql' ], - [ 'addField', 'logging', 'log_user_text', 'patch-log_user_text.sql' ], + [ 'ifNoActorTable', 'addField', 'logging', 'log_user_text', 'patch-log_user_text.sql' ], # listed separately from the previous update because 1.16 was released without this update - [ 'doLogUsertextPopulation' ], + [ 'ifNoActorTable', 'doLogUsertextPopulation' ], [ 'doLogSearchPopulation' ], [ 'addTable', 'l10n_cache', 'patch-l10n_cache.sql' ], - [ 'addIndex', 'tag_summary', 'tag_summary_rc_id', 'patch-change_tag-indexes.sql' ], + [ 'dropIndex', 'change_tag', 'ct_rc_id', 'patch-change_tag-indexes.sql' ], [ 'addField', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ], [ 'sqliteSetupSearchindex' ], @@ -121,9 +119,10 @@ class SqliteUpdater extends DatabaseUpdater { // 1.23 [ 'addField', 'recentchanges', 'rc_source', 'patch-rc_source.sql' ], - [ 'addIndex', 'logging', 'log_user_text_type_time', + [ 'ifNoActorTable', 'addIndex', 'logging', 'log_user_text_type_time', 'patch-logging_user_text_type_time_index.sql' ], - [ 'addIndex', 'logging', 'log_user_text_time', 'patch-logging_user_text_time_index.sql' ], + [ 'ifNoActorTable', 'addIndex', 'logging', 'log_user_text_time', + 'patch-logging_user_text_time_index.sql' ], [ 'addField', 'page', 'page_links_updated', 'patch-page_links_updated.sql' ], [ 'addField', 'user', 'user_password_expires', 'patch-user_password_expire.sql' ], @@ -157,12 +156,11 @@ class SqliteUpdater extends DatabaseUpdater { [ 'addIndex', 'recentchanges', 'rc_name_type_patrolled_timestamp', 'patch-add-rc_name_type_patrolled_timestamp_index.sql' ], [ 'addField', 'change_tag', 'ct_id', 'patch-change_tag-ct_id.sql' ], - [ 'addField', 'tag_summary', 'ts_id', 'patch-tag_summary-ts_id.sql' ], // 1.29 [ 'addField', 'externallinks', 'el_index_60', 'patch-externallinks-el_index_60.sql' ], [ 'addField', 'user_groups', 'ug_expiry', 'patch-user_groups-ug_expiry.sql' ], - [ 'addIndex', 'image', 'img_user_timestamp', 'patch-image-user-index-2.sql' ], + [ 'ifNoActorTable', 'addIndex', 'image', 'img_user_timestamp', 'patch-image-user-index-2.sql' ], // 1.30 [ 'modifyField', 'image', 'img_media_type', 'patch-add-3d.sql' ], @@ -242,6 +240,25 @@ class SqliteUpdater extends DatabaseUpdater { // 1.33 [ 'dropField', 'change_tag', 'ct_tag', 'patch-drop-ct_tag.sql' ], + [ 'dropTable', 'valid_tag' ], + [ 'dropTable', 'tag_summary' ], + [ 'dropField', 'archive', 'ar_comment', 'patch-archive-drop-ar_comment.sql' ], + [ 'dropField', 'ipblocks', 'ipb_reason', 'patch-ipblocks-drop-ipb_reason.sql' ], + [ 'dropField', 'image', 'img_description', 'patch-image-drop-img_description.sql' ], + [ 'dropField', 'oldimage', 'oi_description', 'patch-oldimage-drop-oi_description.sql' ], + [ 'dropField', 'filearchive', 'fa_description', 'patch-filearchive-drop-fa_description.sql' ], + [ 'dropField', 'recentchanges', 'rc_comment', 'patch-recentchanges-drop-rc_comment.sql' ], + [ 'dropField', 'logging', 'log_comment', 'patch-logging-drop-log_comment.sql' ], + [ 'dropField', 'protected_titles', 'pt_reason', 'patch-protected_titles-drop-pt_reason.sql' ], + + // 1.34 + [ 'dropField', 'archive', 'ar_user', 'patch-archive-drop-ar_user.sql' ], + [ 'dropField', 'ipblocks', 'ipb_by', 'patch-ipblocks-drop-ipb_by.sql' ], + [ 'dropField', 'image', 'img_user', 'patch-image-drop-img_user.sql' ], + [ 'dropField', 'oldimage', 'oi_user', 'patch-oldimage-drop-oi_user.sql' ], + [ 'dropField', 'filearchive', 'fa_user', 'patch-filearchive-drop-fa_user.sql' ], + [ 'dropField', 'recentchanges', 'rc_user', 'patch-recentchanges-drop-rc_user.sql' ], + [ 'dropField', 'logging', 'log_user', 'patch-logging-drop-log_user.sql' ], ]; }