wiki.techinc.nl/maintenance/sqlite/archives
Thalia caf9912323 Use year in temporary user names and restart index each year
Why:

* Part of a temporary user name is generated from an index that
  increments, which is stored in the database.
* As specified in T345855, the index will be restarted each year.
* Also specified in T345855, the year will be included in
  generated temporary user names.

What:
* Since the year must be included in the name in order to avoid
  naming conflicts if the index is restarted each year, both are
  implemented together and controlled by a single config.
* Add a new config option that, when true, restarts the name
  generation index at the start of each year and add the year into
  the user name: $wgAutoCreateTempUser['serialProvider']['useYear']
* Add a uas_year column to the user_autocreate_serial table, which
  is unique in combination with uas_shard, so the index can be
  stored for each shard/year combination.
* The year is added into the username just after the prefix, as
  specified in T345855. This is based on research that having the
  year near the start of the name aids understanding that the
  names are not IP addresses. The position of the year within the
  name is therefore not configurable (though whether to include
  it is). See T345855 for the research.

Bug: T349494
Bug: T349501
Depends-On: I6b3c640a4e74f52fd4a4f46de5a2cbe80fe3b665
Change-Id: If51acb3f4efa361ce36d919c862a52501a5a7d24
2024-01-05 17:14:19 +00:00
..
patch-actor-actor_name-varbinary.sql
patch-archive-ar_title-varbinary.sql
patch-archive-MCR.sql
patch-archive-rename-name_title_timestamp-index.sql
patch-category-cat_title-varbinary.sql
patch-categorylinks-cl_to-varbinary.sql
patch-change_tag-rename-indexes.sql Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
patch-content-content_id-fix_not_null.sql
patch-content_models-model_id-fix_not_null.sql
patch-drop-page_restrictions-pr_user.sql Drop pr_user from page_restrictions 2021-12-06 14:15:39 +01:00
patch-drop-rev_page_id.sql Drop rev_page_id index on revision 2022-01-27 09:43:27 +01:00
patch-externallinks-drop-el_to.sql Schema: Drop old externallinks columns and indexes 2023-09-05 15:32:23 +02:00
patch-externallinks-el_to_default.sql Schema: Set default or nullable to three columns of externallinks 2023-07-18 11:59:09 +02:00
patch-externallinks-el_to_path.sql schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
patch-filearchive-drop-fa_actor-DEFAULT.sql rdbms: Stop supporting MySQL in SQLite via regex 2023-05-05 01:20:01 +02:00
patch-filearchive-fa_name.sql
patch-filearchive-fa_size_to_bigint.sql Store image sizes as 64-bit bigint instead of 32-bit integers 2023-10-04 08:01:25 -07:00
patch-image-img_name-varbinary.sql
patch-image-img_size_to_bigint.sql Store image sizes as 64-bit bigint instead of 32-bit integers 2023-10-04 08:01:25 -07:00
patch-imagelinks-il_to-varbinary.sql
patch-ip_changes-pc_rev_timestamp-drop-default.sql
patch-ipblocks-fix-ipb_address_unique.sql
patch-ipblocks-ipb_id.sql schema: Make ipblocks.ipb_id unsigned 2022-04-14 17:45:41 +02:00
patch-ipblocks-ipb_timestamp-drop-default.sql
patch-ipblocks-rename-ipb_address.sql
patch-ipblocks_restrictions-ir_ipb_id.sql schema: Make ipblocks.ipb_id unsigned 2022-04-14 17:45:41 +02:00
patch-ipblocks_restrictions-ir_value.sql schema: Make page_id references unsigned 2022-01-27 20:20:00 +01:00
patch-iwlinks-iwl_title-varbinary.sql
patch-job-job_title-varbinary.sql
patch-langlinks-ll_title-varbinary.sql
patch-linktarget.sql Add linktarget table 2022-01-21 15:52:58 +01:00
patch-logging-drop-log_actor-DEFAULT.sql rdbms: Stop supporting MySQL in SQLite via regex 2023-05-05 01:20:01 +02:00
patch-logging-log_title-varbinary.sql
patch-logging-rename-indexes.sql
patch-objectcache-exptime-notnull.sql
patch-objectcache-modtoken.sql objectcache: add last-modified token field to objectcache table 2021-05-18 20:06:37 -07:00
patch-oldimage-oi_name-varbinary.sql
patch-oldimage-oi_size_to_bigint.sql Store image sizes as 64-bit bigint instead of 32-bit integers 2023-10-04 08:01:25 -07:00
patch-oldimage-oi_timestamp.sql Add index on oldimage.oi_timestamp 2021-05-29 20:44:32 +02:00
patch-page-drop-page_restrictions.sql schema: Drop legacy page_restrictions in page table 2022-05-26 13:59:57 +02:00
patch-page-page_title-varbinary.sql schema: Drop legacy page_restrictions in page table 2022-05-26 13:59:57 +02:00
patch-page-rename-name_title-index.sql schema: Drop legacy page_restrictions in page table 2022-05-26 13:59:57 +02:00
patch-page_props-pp_page.sql schema: Make page_id references unsigned 2022-01-27 20:20:00 +01:00
patch-page_restrictions-null.sql rdbms: Stop supporting MySQL in SQLite via regex 2023-05-05 01:20:01 +02:00
patch-page_restrictions-pr_page.sql schema: Make page_id references unsigned 2022-01-27 20:20:00 +01:00
patch-pagelinks-pl_title-varbinary.sql
patch-pagelinks-target_id.sql sqlite: Fix pagelinks schema patch 2023-11-28 15:37:10 +01:00
patch-protected_titles-pt_expiry-drop-default.sql
patch-protected_titles-pt_title-varbinary.sql
patch-querycache-qc_title-varbinary.sql
patch-querycachetwo-qcc_title-varbinary.sql
patch-recentchanges-drop-rc_actor-DEFAULT.sql rdbms: Stop supporting MySQL in SQLite via regex 2023-05-05 01:20:01 +02:00
patch-recentchanges-rc_new_name_timestamp.sql
patch-recentchanges-rc_title-varbinary.sql
patch-redirect-rd_title-varbinary.sql
patch-revision-actor-comment-MCR.sql
patch-revision-rename-index.sql Rename page_timestamp revision index 2021-04-30 06:58:25 +01:00
patch-revision-rev_timestamp-drop-default.sql Migrate revision table to abstract schema 2021-05-20 14:52:15 -07:00
patch-site_identifiers-rename-indexes.sql
patch-sites-rename-indexes.sql
patch-slot_roles-role_id-fix_not_null.sql
patch-templatelinks-drop-tl_title.sql schema: Drop tl_title and tl_namespace fields from templatelinks 2022-09-06 19:53:15 +02:00
patch-templatelinks-target_id.sql Add tl_target_id to templatelinks 2022-01-28 17:41:01 +01:00
patch-templatelinks-tl_title-nullable.sql Add support for write new for templatelinks migration 2022-07-12 14:46:54 +02:00
patch-templatelinks-tl_title-varbinary.sql
patch-uploadstash-us_size_to_bigint.sql Store image sizes as 64-bit bigint instead of 32-bit integers 2023-10-04 08:01:25 -07:00
patch-user-user_editcount.sql Schema: Updating user_editcount field to unsigned 2022-05-09 21:34:11 +00:00
patch-user-user_is_temp.sql schema: Add user_is_temp column to the user table 2023-05-10 19:18:39 +01:00
patch-user_autocreate_serial-uas_year.sql Use year in temporary user names and restart index each year 2024-01-05 17:14:19 +00:00
patch-user_autocreate_serial.sql TempUser infrastructure and services 2022-04-14 09:23:55 +10:00
patch-user_properties-rename-index.sql
patch-user_table-updates.sql
patch-watchlist-namespace_title-rename-index.sql
patch-watchlist-wl_title-varbinary.sql
searchindex-fts3.sql
searchindex-no-fts.sql