wiki.techinc.nl/maintenance/postgres
Jeff Janes 3603b8d772 PostgreSQL: Drop unneeded foreign key constraint
Change I1c7f3a84f10df05d6b37dccbad4c8232edf51580 causes
an existing foreign key assumption (under PostgreSQL) to be
violated upon deleting a page.  This foreign key assumption does not
explicitly exist in MySQL, and is not implied via documentation.  So
it was probably never needed in the first place.

Don't create the foreign key constraint in PostgreSQL, and drop it
if it already exists when running update.php.

The constraint was previously created with an implicit name, so
drop the constraint involving the specified column name (rc_cur_id),
rather than hard-coding the name of the constraint itself.

This bug probably exists under Oracle and MSSQL as well, but no attempt
was made to address it there.

Bug: T76254
Change-Id: I2abd650c8ce83c5b725aec0545fff14a927a305a
2015-01-30 13:15:29 -08:00
..
archives In maintenance/postgres/tables.sql, the profiling table should be defined like 2013-10-15 20:19:10 +00:00
compare_schemas.pl Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
mediawiki_mysql2postgres.pl chmod 755 bash & Perl files, chmod 644 .css file 2014-10-30 18:25:16 +00:00
tables.sql PostgreSQL: Drop unneeded foreign key constraint 2015-01-30 13:15:29 -08:00
update-keys.sql PostgreSQL: Port update-keys.sql to PostgreSQL 2014-10-31 13:21:04 -07:00