Original: https://www.mediawiki.org/wiki/Extension:Comments Das hier ist eine an https://znil.net angepasste Version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

comments_vote.oracle.sql 1.1KB

12345678910111213141516171819202122232425
  1. -- Oracle variant of Comments' database schema
  2. -- This is probably crazy, but so is Oracle. I've never used Oracle so
  3. -- there's a fair chance that the code is full of bugs, stupid things or both.
  4. -- Please feel free to submit patches or just go ahead and fix it.
  5. --
  6. -- This DOES NOT build at SQLFiddle.com...
  7. --
  8. -- Author: Jack Phoenix
  9. -- Date: 24 July 2013
  10. -- No idea if this is needed, but /maintenance/oracle/tables.sql uses it, so I
  11. -- guess it serves some purpose here, too
  12. define mw_prefix='{$wgDBprefix}';
  13. CREATE TABLE &mw_prefix.Comments_Vote (
  14. Comment_Vote_ID NUMBER NOT NULL DEFAULT 0,
  15. Comment_Vote_user_id NUMBER NOT NULL DEFAULT 0,
  16. Comment_Vote_Username VARCHAR2(200) NOT NULL,
  17. Comment_Vote_Score NUMBER NOT NULL DEFAULT 0,
  18. Comment_Vote_Date TIMESTAMP(6) WITH TIME ZONE NOT NULL,
  19. Comment_Vote_IP VARCHAR2(45) NOT NULL
  20. );
  21. CREATE UNIQUE INDEX &mw_prefix.Comments_Vote_user_id_index ON &mw_prefix.Comments_Vote (Comment_Vote_ID,Comment_Vote_Username);
  22. CREATE INDEX &mw_prefix.Comment_Vote_Score ON &mw_prefix.Comments_Vote (Comment_Vote_Score);
  23. CREATE INDEX &mw_prefix.Comment_Vote_user_id ON &mw_prefix.Comments_Vote (Comment_Vote_user_id);