wiki.techinc.nl/maintenance/sqlite/archives
Máté Szabó 992da671a1 Add schema change to make page.page_restrictions column nullable
The page.page_restrictions field was used to store protection settings
for pages before MediaWiki 1.10 introduced the page_restrictions table.
update.php has since been running the updateRestrictions.php maintenance
script to migrate data from the legacy field to the new table.

In preparation for dropping this field, it is necessary to first make this
column nullable, so that we can remove code that references it during write
operations. This patch adds migrations for MySQL and SQLite to make the column
type 'tinyblob NULL'. Postgres does not seem to require a schema change, as the
field definition there is 'TEXT' rather than 'TEXT NOT NULL'.

Bug: T218446
Change-Id: I626859cdb5ab81c504a986129d21059ab088b8bd
2020-03-20 20:51:55 +01:00
..
initial-indexes.sql Drop the transcache table from the schema 2018-08-31 19:50:49 -07:00
patch-add-3d.sql SQLite: Make patch-add-3d.sql a no-op 2018-11-26 13:58:03 -05:00
patch-ar_rev_id-not-null.sql Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
patch-archive-ar_actor.sql Split down patch-actor-table.sql 2019-09-30 15:20:08 +00:00
patch-archive-ar_comment_id.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-archive-ar_id.sql
patch-archive-ar_rev_id-unique.sql Make archive.ar_rev_id unique 2018-06-04 08:52:06 +00:00
patch-archive-drop-ar_comment.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-archive-drop-ar_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-archive_kill_ar_page_revid.sql
patch-cat_hidden.sql
patch-categorylinks-better-collation.sql
patch-categorylinks-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-change_tag-change_tag_rc_tag_id.sql Schema change for reading ct_tag_id instead of ct_tag 2018-09-04 19:29:48 +02:00
patch-change_tag-ct_id.sql
patch-drop-ar_text.sql Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
patch-drop-ct_tag.sql Drop ct_tag column from change_tag table 2018-11-28 23:03:43 +01:00
patch-drop-page_counter.sql
patch-drop-rc_cur_time.sql
patch-drop-ss_admins.sql
patch-drop-ss_total_views.sql
patch-drop-user_options.sql
patch-editsummary-length.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-externallinks-el_id.sql
patch-externallinks-el_index_60-drop-default.sql Populate externallinks.el_index_60 and drop default 2018-05-15 12:08:35 -04:00
patch-filearchive-drop-fa_actor-DEFAULT.sql Drop DEFAULT from *_actor columns for SQLite tables that still have it 2020-03-19 21:17:56 -07:00
patch-filearchive-drop-fa_description.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-filearchive-drop-fa_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-filearchive-fa_actor.sql SQLite: Split actor and comment filearchive updates to a separate file 2018-11-28 13:59:19 -05:00
patch-filearchive-fa_description_id.sql SQLite: Split actor and comment filearchive updates to a separate file 2018-11-28 13:59:19 -05:00
patch-image-drop-img_description.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-image-drop-img_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-image-img_actor.sql Split down patch-actor-table.sql 2019-09-30 15:20:08 +00:00
patch-image-img_description-default.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-image-img_description_id.sql DB: Add img_description_id column 2018-03-13 16:54:25 -04:00
patch-imagelinks-fix-pk.sql Make sure database update succeeds from older database versions too. 2019-01-13 06:29:37 +02:00
patch-interwiki-fix-pk.sql Convert numerous UNIQUE INDEX to PRIMARY KEY 2018-07-11 20:36:33 +01:00
patch-ip_changes.sql Replace deprecated IP class with IPUtils 2020-01-24 18:49:33 +01:00
patch-ipblocks-drop-ipb_by.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-ipblocks-drop-ipb_reason.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-ipblocks-ipb_by_actor.sql Split down patch-actor-table.sql 2019-09-30 15:20:08 +00:00
patch-ipblocks-ipb_reason_id.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-iw_api_and_wikiid.sql
patch-iwlinks-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-job_token.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-jobs-add-timestamp.sql
patch-kill-iwl_prefix.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-l10n_cache-primary-key.sql Convert INDEX into PRIMARY KEY in l10n_cache 2017-09-05 17:58:12 +00:00
patch-langlinks-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-log_search-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-log_user_text.sql
patch-logging-drop-log_actor-DEFAULT.sql Drop DEFAULT from *_actor columns for SQLite tables that still have it 2020-03-19 21:17:56 -07:00
patch-logging-drop-log_comment.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-logging-drop-log_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-logging-log_actor.sql Split down patch-actor-table.sql 2019-09-30 15:20:08 +00:00
patch-logging-log_comment_id.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-module_deps-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-objectcache-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-oldimage-drop-oi_description.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-oldimage-drop-oi_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-oldimage-oi_actor.sql Split down patch-actor-table.sql 2019-09-30 15:20:08 +00:00
patch-oldimage-oi_description_id.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-page-page_lang.sql
patch-page_props-fix-pk.sql Convert numerous UNIQUE INDEX to PRIMARY KEY 2018-07-11 20:36:33 +01:00
patch-page_redirect_namespace_len.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-page_restrictions-null.sql Add schema change to make page.page_restrictions column nullable 2020-03-20 20:51:55 +01:00
patch-pagelinks-fix-pk.sql Fix SQLite patch-(page|template)links-fix-pk.sql column order 2019-06-30 17:47:53 +01:00
patch-protected_titles-drop-pt_reason.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-protected_titles-fix-pk.sql Convert numerous UNIQUE INDEX to PRIMARY KEY 2018-07-11 20:36:33 +01:00
patch-protected_titles-pt_reason_id.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-querycache_info-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-rc_moved.sql
patch-rd_interwiki.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-recentchanges-drop-rc_actor-DEFAULT.sql Drop DEFAULT from *_actor columns for SQLite tables that still have it 2020-03-19 21:17:56 -07:00
patch-recentchanges-drop-rc_comment.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
patch-recentchanges-drop-rc_user.sql Mostly drop old pre-actor user schemas 2019-09-09 11:38:36 -04:00
patch-recentchanges-nttindex.sql Change index on rc_namespace, rc_title to rc_namespace, rc_title, rc_timestamp 2018-04-04 09:08:28 +02:00
patch-recentchanges-rc_actor.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-recentchanges-rc_comment_id.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-rename-iwl_prefix.sql
patch-rev_text_id-default.sql Add default for revision.rev_text_id where missing 2018-03-19 18:20:27 +00:00
patch-revision-rev_comment-default.sql Split down patch-comment-table.sql 2019-08-20 19:35:57 +00:00
patch-revision-user-page-index.sql
patch-site_identifiers-fix-pk.sql Convert numerous UNIQUE INDEX to PRIMARY KEY 2018-07-11 20:36:33 +01:00
patch-site_stats-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-site_stats-modify.sql Overhaul site_stats table 2018-03-26 23:51:40 +00:00
patch-sites.sql
patch-slot-origin.sql MCR: replace slot_inherited with slot_origin 2018-03-19 21:51:56 +01:00
patch-templatelinks-fix-pk.sql Fix SQLite patch-(page|template)links-fix-pk.sql column order 2019-06-30 17:47:53 +01:00
patch-text-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-ufg_group-length-increase-255.sql Remove traling double newlines from text files 2019-10-23 21:17:43 +02:00
patch-ug_group-length-increase-255.sql
patch-user_former_groups-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-user_groups-ug_expiry.sql
patch-user_properties-fix-pk.sql Convert UNIQUE keys into PRIMARY KEY 2017-08-29 18:25:37 +01:00
patch-watchlist-wl_id.sql
searchindex-fts3.sql
searchindex-no-fts.sql