diff options
author | Hannah Okwelum <hokwelum@wikimedia.org> | 2025-02-06 09:38:52 +0000 |
---|---|---|
committer | Krinkle <krinkle@fastmail.com> | 2025-02-13 01:55:18 +0000 |
commit | 4e456415b62a6bcb1ab54a36fe26e8af3a55478f (patch) | |
tree | a37c957dc644f6774b98f21887ebff95796640d8 /sql | |
parent | 1f845afa8a3bbb21fda78d02a83addfe511e9063 (diff) | |
download | mediawikicore-4e456415b62a6bcb1ab54a36fe26e8af3a55478f.tar.gz mediawikicore-4e456415b62a6bcb1ab54a36fe26e8af3a55478f.zip |
ResourceLoader: Remove module_deps table
No longer used. see T343492
Bug: T379661
Change-Id: I6b3d51995452f77b5da86b0cf32a23b12c7c669c
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysql/tables-generated.sql | 8 | ||||
-rw-r--r-- | sql/postgres/patch-module_deps-pk.sql | 3 | ||||
-rw-r--r-- | sql/postgres/tables-generated.sql | 8 | ||||
-rw-r--r-- | sql/sqlite/tables-generated.sql | 8 | ||||
-rw-r--r-- | sql/tables.json | 26 |
5 files changed, 0 insertions, 53 deletions
diff --git a/sql/mysql/tables-generated.sql b/sql/mysql/tables-generated.sql index 0bf782500aa6..d1163def6a5b 100644 --- a/sql/mysql/tables-generated.sql +++ b/sql/mysql/tables-generated.sql @@ -134,14 +134,6 @@ CREATE TABLE /*_*/l10n_cache ( ) /*$wgDBTableOptions*/; -CREATE TABLE /*_*/module_deps ( - md_module VARBINARY(255) NOT NULL, - md_skin VARBINARY(32) NOT NULL, - md_deps MEDIUMBLOB NOT NULL, - PRIMARY KEY(md_module, md_skin) -) /*$wgDBTableOptions*/; - - CREATE TABLE /*_*/redirect ( rd_from INT UNSIGNED DEFAULT 0 NOT NULL, rd_namespace INT DEFAULT 0 NOT NULL, diff --git a/sql/postgres/patch-module_deps-pk.sql b/sql/postgres/patch-module_deps-pk.sql deleted file mode 100644 index f269f6f03a58..000000000000 --- a/sql/postgres/patch-module_deps-pk.sql +++ /dev/null @@ -1,3 +0,0 @@ -DROP INDEX IF EXISTS md_module_skin; -ALTER TABLE module_deps - ADD PRIMARY KEY (md_module, md_skin); diff --git a/sql/postgres/tables-generated.sql b/sql/postgres/tables-generated.sql index 47d2fafab16a..1d813d675937 100644 --- a/sql/postgres/tables-generated.sql +++ b/sql/postgres/tables-generated.sql @@ -146,14 +146,6 @@ CREATE TABLE l10n_cache ( ); -CREATE TABLE module_deps ( - md_module TEXT NOT NULL, - md_skin TEXT NOT NULL, - md_deps TEXT NOT NULL, - PRIMARY KEY(md_module, md_skin) -); - - CREATE TABLE redirect ( rd_from INT DEFAULT 0 NOT NULL, rd_namespace INT DEFAULT 0 NOT NULL, diff --git a/sql/sqlite/tables-generated.sql b/sql/sqlite/tables-generated.sql index 2a27dc4fd171..92329554c47c 100644 --- a/sql/sqlite/tables-generated.sql +++ b/sql/sqlite/tables-generated.sql @@ -139,14 +139,6 @@ CREATE TABLE /*_*/l10n_cache ( ); -CREATE TABLE /*_*/module_deps ( - md_module BLOB NOT NULL, - md_skin BLOB NOT NULL, - md_deps BLOB NOT NULL, - PRIMARY KEY(md_module, md_skin) -); - - CREATE TABLE /*_*/redirect ( rd_from INTEGER UNSIGNED DEFAULT 0 NOT NULL, rd_namespace INTEGER DEFAULT 0 NOT NULL, diff --git a/sql/tables.json b/sql/tables.json index 6fffd0bccc03..e8c5d1e4f54d 100644 --- a/sql/tables.json +++ b/sql/tables.json @@ -434,32 +434,6 @@ "pk": [ "lc_lang", "lc_key" ] }, { - "name": "module_deps", - "comment": "Table caching which local files a module depends on that aren't registered directly, used for fast retrieval of file dependency. Currently only used for tracking images that CSS depends on", - "columns": [ - { - "name": "md_module", - "comment": "Module name", - "type": "binary", - "options": { "notnull": true, "length": 255 } - }, - { - "name": "md_skin", - "comment": "Module context vary (includes skin and language; called \"md_skin\" for legacy reasons)", - "type": "binary", - "options": { "notnull": true, "length": 32 } - }, - { - "name": "md_deps", - "comment": "JSON blob with file dependencies", - "type": "blob", - "options": { "notnull": true, "length": 16777215 } - } - ], - "indexes": [], - "pk": [ "md_module", "md_skin" ] - }, - { "name": "redirect", "comment": "For each redirect, this table contains exactly one row defining its target.\nRedirect targets are key to page_namespace/page_title of the target page.\nThe target page may or may not exist, and due to renames\nand deletions may refer to different page records as time\ngoes by.", "columns": [ |