https://bugzilla.wikimedia.org/show_bug.cgi?id=37702

       Web browser: ---
             Bug #: 37702
           Summary: Cloned tables for unitests do not have references and
                    constraints
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: postgresql
          Severity: major
          Priority: Unprioritized
         Component: Unit tests
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            Blocks: 36759, 37600
    Classification: Unclassified
   Mobile Platform: ---


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

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to