Page MenuHomePhabricator

Make it possible for abstract schema dbs to not have a PK
Closed, ResolvedPublic

Description

EntitySchema has a simple table without a PK

CREATE TABLE IF NOT EXISTS /*_*/entityschema_id_counter (
  id_value                   INT unsigned        NOT NULL
) /*$wgDBTableOptions*/;

Generating an abstract schema without a PK causes various errors...

Event Timeline

Change 643126 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@master] rdbms: Make adding a PK optional in DoctrineAbstractSchemaTrait.php

https://gerrit.wikimedia.org/r/643126

Reedy renamed this task from Make it possible for abstract schema dbs to not have PK to Make it possible for abstract schema dbs to not have a PK.Nov 24 2020, 3:56 AM

Change 643126 merged by jenkins-bot:
[mediawiki/core@master] rdbms: Make adding a PK optional in DoctrineAbstractSchemaTrait.php

https://gerrit.wikimedia.org/r/643126

Reedy claimed this task.
Reedy triaged this task as Low priority.