File: patch-revision_rev_user_fkey.sql

package info (click to toggle)
mediawiki 1%3A1.19.20%2Bdfsg-0%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 75,652 kB
  • sloc: php: 844,154; pascal: 6,026; sql: 5,936; perl: 769; python: 745; makefile: 413; sh: 194; xml: 91; ansic: 77
file content (4 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (7)
1
2
3
4
ALTER TABLE revision DROP CONSTRAINT revision_rev_user_fkey;
ALTER TABLE revision ADD CONSTRAINT revision_rev_user_fkey
  FOREIGN KEY (rev_user) REFERENCES mwuser(user_id) ON DELETE RESTRICT;