Last modified: 2013-05-25 13:50:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33241, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31241 - Oracle Schema: ON DELETE SET NULL with several tables bring error on deletes
Oracle Schema: ON DELETE SET NULL with several tables bring error on deletes
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Jure Kajzer
: easy
Depends on:
Blocks: oracle
  Show dependency treegraph
 
Reported: 2011-09-29 06:54 UTC by Peter Vogler
Modified: 2013-05-25 13:50 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Peter Vogler 2011-09-29 06:54:26 UTC
When you want to delete a page in an Mediawiki running on Oracle, you get the following error:
1407: ORA-01407: cannot update ("SCHEMANAME"."RECENTCHANGES"."RC_CUR_ID") to NULL“. 

So therefore I checked the database schema for Oracle and found out, that e.g. the RC_CUR_ID column is not allowed to NULL, but upon on delete of the foreign key data, it should be set to NULL.

I found this definition for the following tables:
- archive
- filearchive
- image
- ipblocks
- logging
- oldimgae
- recentchanges

In the Postgre schmema I saw that these columns are allowed to be NULL.

Maybe th columns for Oracle could be changed that way, or they will be set to the a default on delete?
Comment 1 akshay chugh 2012-05-03 08:13:57 UTC
Considering the scope of this request, I think Jure Kajzer would be able to help out with the above stated issue.
Hence, assigning this bug to Jure.
Comment 2 Jure Kajzer 2013-05-25 13:50:44 UTC
This one has been fixed a while ago. I guess i just forgot to close it.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links