Looks like tables used for unit tests do not have all relationships of the original ones:
(below was obtained from running unit tests with temporary tables disabled)
minitest=# \d pagelinks
Table "mediawiki.pagelinks"
Column | Type | Modifiers |
---|---|---|
pl_from | integer | not null |
pl_namespace | smallint | not null |
pl_title | text | not null |
Indexes: "pagelink_unique" UNIQUE, btree (pl_from, pl_namespace, pl_title) "pagelinks_title" btree (pl_title) Foreign-key constraints: "pagelinks_pl_from_fkey" FOREIGN KEY (pl_from) REFERENCES page(page_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
minitest=# \d page
minitest=# \d unittest_pagelinks
Table "mediawiki.unittest_pagelinks"
Column | Type | Modifiers |
---|---|---|
pl_from | integer | not null |
pl_namespace | smallint | not null |
pl_title | text | not null |
Version: 1.20.x
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57724