Commit graph

718 commits

Author SHA1 Message Date
James D. Forrester
20fd877da4 Drop experimental FileJournal system without deprecation
The feature was introduced in 2012 with d19f54602f (just before
the gerrit migration).

Change-Id: Ia3f59ad0ddeb1f610947b14e22b0694ff4c6ed84
2021-11-01 14:08:09 +11:00
Amir Sarabadani
753a4ecdd3 Bump minimum required version for upgrade to 1.29
Since the branch cut has happened, we can bump and get rid of legacy
cruft. According to the policy we can go up to 1.31 but let's keep it
that way to avoid major distruptions.

Change-Id: I9d697445a3bb5047726c8b2a7f808edb8403cdda
2021-09-28 17:57:57 +02:00
Ammar Abdulhamid
1adaca51c3 Rename change_tag indexes to have ct_ prefix
Bug: T270033
Change-Id: I8a429726c99f6cadea0d671fd871f66b5611c856
2021-06-08 17:57:15 +01:00
Ammarpad
a8c01d7726 Rename name_title index to have page_ prefix
Bug: T270033
Change-Id: Id70d0e0a37dd0d000079820d51cef2791f5ec42e
2021-06-05 20:21:07 +02:00
Amir Sarabadani
7fdca7ce51 Add index on oldimage.oi_timestamp
Mirroring what happens on image table.

Bug: T279982
Change-Id: Ib67c32b10d3b88e09514d8fbb5dcb4f977108ba2
2021-05-29 20:44:32 +02:00
Aaron Schulz
12923c1cd5 objectcache: add last-modified token field to objectcache table
Also added token and flags fields. The token field can
be used as a tie-breaker for modtime and also for faster
cas() operations. The flags field makes serialization and
compression format changes easier in the future.

Bug: T274174
Change-Id: I45731a877b21835652993c2d285165a76eeae3e9
2021-05-18 20:06:37 -07:00
Ammarpad
d9400049cf Rename page_timestamp revision index
Rename to `rev_page_timestamp`

Bug: T270033
Depends-On: I16fc273b14e7f4b00e8c31ec1ed7712149aafe37
Change-Id: I93fcfb3caf8c6bd7f9e46921065b751c23571ae1
2021-04-30 06:58:25 +01:00
Amir Sarabadani
13c298fcc9 Drop unused patch-watchlist.sql
This patch was introduced in r1030 (2002) and was never
wired to update.php and any mention of it was removed from documentation
in r23242 (2007). Since then, you can't find any mention of this file.
It clearly won't run on any modern mediawiki database.

Change-Id: I49a7a0bd53d5fb1b97f9c7016bb72d29e50211f7
2021-04-02 00:09:59 +02:00
Amir Sarabadani
1bcee79097 Drop now unused patch-interwiki.sql
Follow up to I0de40b8dc6

Bug: T272199
Bug: T273080
Change-Id: I639f31e2ece1c936a9013f504e545796aa636724
2021-03-30 20:04:09 +02:00
jenkins-bot
3f96a72ac9 Merge "Prepare for migrating user to abstract schema" 2021-03-28 10:31:03 +00:00
Ammarpad
c697406d3f Prepare for migrating user to abstract schema
Split off to make the migration patch smaller

Postgres:
 - Make user_touched not nullable

MySQL/SQlite
 - Change user_name from varchar to varbinary
 - Change user_name from varchar to varbinary
 - Drop empty string default from user_touched (Timestamp field)

Bug: T230428
Bug: T164898
Change-Id: I8fe0b1fb2af3149a2e2fdae7bb056ac6f863b09c
2021-03-28 09:55:07 +01:00
jenkins-bot
9324b7ecc5 Merge "Drop unused patch-random-dateindex.sql" 2021-03-27 10:40:12 +00:00
Amir Sarabadani
f21644c8fe Drop unused patch-random-dateindex.sql
This patch was introduced in r1161 (February 2003) but it wasn't
mentioned in the patch-list.txt and checking git history since initial
version (phase3) didn't return any mention of it since then.

It clearly can't be ran on any modern mediawiki setup.

Change-Id: Ic5a8f0699dd31a181c31582be4958522ce3483b3
2021-03-27 09:53:02 +01:00
Ammarpad
eece54b831 Remove unused schema change.
There's no reason to keep schema change that's no longer useful.
History is already tracked by git.

Change-Id: Ia8aa0d21ae5f2d799d9a641ebe7b924f56e07ab1
2021-03-27 09:32:29 +01:00
Ammar Abdulhamid
6a3aa5b5a2 Migrate page to abstract schema
Postgres:
 - Change page_namespace from smallint to int
 - Change page_random from numeric with arbitrary precision to float
 - Make page_touched not nullable

MySQL/SQLite:
 - Change datatype of page_title from varchar (with binary collation)
   to varbinary(255)
 - Drop default empty string from timestamp field of page_touched

Bug: T230428
Bug: T164898
Change-Id: Ibdaf332ea1da309d31d35a6ebbc1b8fefced335e
2021-03-21 12:07:12 +01:00
Amir Sarabadani
c2eca3b0ab Drop MysqlUpdater::doExtendCommentLengths() and its related sql file
It was introduced in 1.25 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I6daf211baa688ad749a8c37ddd776736e598d316
2021-03-17 07:57:54 +01:00
Amir Sarabadani
5f7503b5a7 Drop MysqlUpdater::doIwlinksIndexNonUnique() and its related sql file
It was introduced in 1.22 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I6cdedf33a9b94931e188177b3975b195ebd32111
2021-03-17 07:49:54 +01:00
Amir Sarabadani
810786fd21 Drop MysqlUpdater::doUserNewTalkTimestampNotNull() and its related sql file
It was introduced in 1.18 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: Ib66e9b7c197727bd87552486d7a8f8619ebb5b30
2021-03-15 09:56:44 +01:00
Amir Sarabadani
cbffebcb4d Drop MysqlUpdater::doClFieldsUpdate() and its related sql file
It was introduced in 1.17 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: Ia81fc68334c5c63d06d22cfea58eab644e12248d
2021-03-15 09:56:44 +01:00
Amir Sarabadani
eb51e14aaa Drop MysqlUpdater::doUpdateMimeMinorField() and its related sql file
It was introduced in 1.16 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I11083df7f6399b44615f1b4e0b7815680cbc4ff1
2021-03-15 09:56:44 +01:00
jenkins-bot
bd98f44a0e Merge "Migrate archive table to abstract schema" 2021-03-14 05:53:19 +00:00
jenkins-bot
76641ddb1c Merge "Drop MysqlUpdater::doFilearchiveIndicesUpdate() and its related sql file" 2021-03-13 21:25:44 +00:00
jenkins-bot
edfcf345dd Merge "Drop MysqlUpdater::doCategorylinksIndicesUpdate() and its related sql file" 2021-03-13 21:25:38 +00:00
Amir Sarabadani
2cc79854e8 Migrate archive table to abstract schema
One of the last ones left.

For MySQL/Sqlite:
 - Dropping default of ar_timestamp, empty string is not a valid
   timestamp.
 - Changing ar_title from "varchar() binary" to varbinary

for Postgres:
 - Set default for ar_namespace and ar_title
 - Change datatype of ar_comment_id, ar_actor, ar_namespace
The indexes were fixed separately.

Bug: T230428
Bug: T164898
Bug: T42626
Depends-On: I83cf1cd51ac9cf933c9175cefd6e38a6914f3494
Change-Id: Ic1d13a82b27f7fa39a0f0ea9c5b7b193b007e4ab
2021-03-13 21:51:16 +01:00
Amir Sarabadani
c13c513aee Drop MysqlUpdater::doFilearchiveIndicesUpdate() and its related sql file
It was introduced in 1.13 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: Ieff17b99c881c2906fb71ebb7b9eac226c399b45
2021-03-13 19:41:27 +01:00
Amir Sarabadani
f9a322c38c Drop MysqlUpdater::doCategorylinksIndicesUpdate() and its related sql file
It was introduced in 1.11 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I9ca3430fc0b20a4c275d1a2c6e8560baf75daac9
2021-03-13 19:35:53 +01:00
Amir Sarabadani
0ce4823971 Drop maintenance/archives/upgradeLogging.php
- This script should not be in archives directory, that directory
   is for sql patches.
 - It fixes upgrading from pre 1.10 to 1.10 while making sure
   replication works fine. We don't support upgrading from that version
   anymore.

Change-Id: I4ecd7d825be721331d3686ae8ff9190357c4e34f
2021-03-13 18:07:04 +00:00
jenkins-bot
118631d369 Merge "Drop MysqlUpdater::doRestrictionsUpdate() and its related sql file." 2021-03-12 19:39:54 +00:00
jenkins-bot
716c52ae89 Merge "Drop MysqlUpdater::doBacklinkingIndicesUpdate() and its related sql file" 2021-03-12 19:39:47 +00:00
jenkins-bot
d9d3011bd7 Merge "Drop MysqlUpdater::doTemplatelinksUpdate() and its related sql file" 2021-03-12 19:34:17 +00:00
Amir Sarabadani
2f77810f79 Drop unused patch-userindex.sql
This patch was introduced in r1151 (2003, No kidding) and was never
wired to update.php and any mention of it was removed from documentation
in r23242 (2007). Since then, you can't find any mention of this file.
It clearly won't run on any modern mediawiki database.

Change-Id: Idb4feec3850e4303e6980ef15888e3c5a61c3484
2021-03-12 12:18:51 +01:00
Amir Sarabadani
d1741f8991 Drop MysqlUpdater::doRestrictionsUpdate() and its related sql file.
It was introduced in 1.10 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

The other sql file has been removed in I982f9a7018069.

Bug: T272199
Change-Id: Ice40c6962dc558b8370fdbce04e51c0e1ece76ce
2021-03-12 11:43:47 +01:00
Amir Sarabadani
d29685aec0 Drop MysqlUpdater::doBacklinkingIndicesUpdate() and its related sql file
It was introduced in 1.9 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: Ib8a480cb570f16ae65e52912591e1d3f0c44aaf0
2021-03-12 11:43:41 +01:00
Amir Sarabadani
e1988c3eda Drop MysqlUpdater::doTemplatelinksUpdate() and its related sql file
It was introduced in 1.6 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I71aaa4f282271cc9254257e2f2c7f892121870ad
2021-03-12 11:43:40 +01:00
Amir Sarabadani
335c06f7b6 Drop MysqlUpdater::doWatchlistNull() and its related sql file
It was introduced in 1.6 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I8d9565fe035faf96033dc207515b8ec21bca9fe6
2021-03-10 14:33:42 +01:00
Amir Sarabadani
de10282064 Drop MysqlUpdater::doUserGroupsUpdate()
This was introduced in 1.5 which we don't support direct upgrading
from anymore and it's already removed from wiring of the update.php.

Also removing related sql files as they are not used anywhere anymore.

Bug: T272199
Change-Id: Iffc8d2694113d56c3a97a4b72b29e5a30c6d43d1
2021-03-10 00:59:16 +01:00
jenkins-bot
5de76409f6 Merge "Drop unused patch-parsercache.sql" 2021-03-09 23:43:01 +00:00
Amir Sarabadani
9448a67185 Drop unused patch-rename-user_groups-and_rights.sql
This was introduced in r6057 (2004) and got removed from update in r9367
(2005) as it wasn't needed anymore. There's no mention of this file
since then.

Change-Id: I8498291b5ca61578074e3fc1706ab9ce526b3d87
2021-03-09 17:32:10 +00:00
jenkins-bot
19d671dcb4 Merge "Drop 1.27 upgrade patch files" 2021-03-09 11:08:06 +00:00
Ammarpad
2ca437dca9 Drop 1.27 upgrade patch files
6 files for Mysql/Sqlite/PG

Change-Id: Idef4906c5a7fdac2667c35bac7e8cc54629647f8
2021-03-09 07:15:37 +01:00
Amir Sarabadani
59af2e3132 Drop MysqlUpdater::doUserUniqueUpdate and its sql patch
This was introduced in version 1.5 which we don't support upgrading from
anymore and it's already removed from update.php checks.

Also dropping its related maintenance script which is not needed
anymore.

Bug: T272199
Change-Id: I5a755fd04f0e69880f27628fd805f865f4bc86bf
2021-03-08 17:17:55 +01:00
Amir Sarabadani
124bc610e0 Drop pagelinks table creation code
This was introduced in 2005 (1.5) and we don't support upgrade from that
version anymore (also it got removed from update.php runs as well). It's
good to go.

Bug: T272199
Change-Id: I5f7c08fce26ffa1e7b989528b0f450ce610ba744
2021-03-06 00:02:21 +01:00
Amir Sarabadani
c1cf980603 Drop unused patch-parsercache.sql
This file isn't mentioned anywhere in current code nor in the history
of commits (git log -S 'parsercache.sql' didn't bring anything) so I'm
sure it's not wired to any update.php and I'm also sure our ParserCache
table structure is different than what it is outlined in this schema.

Change-Id: Icba19f5e39e08ebbbba9bd7836d3386db081b390
2021-03-05 19:52:59 +01:00
Amir Sarabadani
b0dbe27c58 Remove unused patch-image_name_unique.sql
This file was never wired to update.php and it was added as something
you should run when you hit an error and even that check got removed in
r21785 (2007) and since then, there's no mention of this file anywhere.

Change-Id: I63ecadf4196621b5204aa7f14a7ec56d139903b5
2021-03-05 19:49:12 +01:00
jenkins-bot
fdc8d2424a Merge "Drop unused patch-bot.sql patch" 2021-03-04 21:21:28 +00:00
Amir Sarabadani
1293e1f53d Drop unused patch-bot.sql patch
This patch was introduced in r1015 (2002, I'm not joking) and was never
wired to update.php and any mention of it was removed from documentation
in r69187 (2010). Since then, you can't find any mention of this file.
It clearly won't run on any modern mediawiki database.

Change-Id: Ib13cbd632599666c769830b4f07d61ead14e6af2
2021-03-04 21:36:45 +01:00
Amir Sarabadani
e7df1e368b Add schema change for img_timestamp varbinary(14) to binary(14)
This is a follow up to I237af3558 where datatype of img_timestamp for
MySQL was changed from varbinary(14) to binary(14) as part of
standardizing timestamp fields in MySQL (T42626).

This change does not affect Postgres or Sqlite.

Bug: T42626
Bug: T230428
Change-Id: Ic4bd59736ff82d8bdb60fbac46a89f18257b8292
2021-03-04 21:18:21 +01:00
jenkins-bot
0bcb829313 Merge "Rename new_name_timestamp on recentchanges to rc_new_name_timestamp" 2021-03-02 23:50:09 +00:00
Amir Sarabadani
07b05d3db9 Drop unused patch-userlevels.sql patch
This patch was marked as obsolete and removed from updater in r9367
(2005) and any mention of it was removed from documentation in r69187
(2010). Since then, you can't find any mention of this file.

Change-Id: I3a45f4661434737fa977c721ba6cf74864984d6a
2021-03-02 22:15:14 +01:00
Amir Sarabadani
1053405664 Rename new_name_timestamp on recentchanges to rc_new_name_timestamp
To make it have a uniform prefix for index and column names

Bug: T270033
Change-Id: I8eb600416913092bd5aeb70389bba6e8a54d1d57
2021-03-01 19:00:52 +00:00