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_block.oracle.sql 1016B

123456789101112131415161718192021222324252627
  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 SEQUENCE Comments_block_cb_id_seq;
  14. CREATE TABLE &mw_prefix.Comments_block (
  15. cb_id NUMBER NOT NULL,
  16. cb_user_id NUMBER NOT NULL DEFAULT 0,
  17. cb_user_name VARCHAR2(255) NOT NULL,
  18. cb_user_id_blocked NUMBER DEFAULT NULL,
  19. cb_user_name_blocked VARCHAR2(255) NOT NULL,
  20. cb_date TIMESTAMP(6) WITH TIME ZONE
  21. );
  22. CREATE INDEX &mw_prefix.cb_user_id ON &mw_prefix.Comments_block (cb_user_id);
  23. ALTER TABLE &mw_prefix.Comments_block ADD CONSTRAINT &mw_prefix.Comments_block_pk PRIMARY KEY (cb_id);