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.mssql.sql 1.1KB

12345678910111213141516171819202122232425
  1. -- Microsoft SQL Server (MSSQL) variant of Comments' database schema
  2. -- This is probably crazy, but so is MSSQL. I've never used MSSQL 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. -- Tested at SQLFiddle.com against MS SQL Server 2008 & 2012 and at least this
  7. -- builds. Doesn't guarantee anything, though.
  8. --
  9. -- Author: Jack Phoenix
  10. -- Date: 24 July 2013
  11. CREATE TABLE /*$wgDBprefix*/Comments (
  12. CommentID INT NOT NULL PRIMARY KEY IDENTITY(0,1),
  13. Comment_Page_ID INT NOT NULL default 0,
  14. Comment_user_id INT NOT NULL default 0,
  15. Comment_Username NVARCHAR(200) NOT NULL default '',
  16. Comment_Text text NOT NULL,
  17. Comment_Date DATETIME NOT NULL default '0000-00-00 00:00:00',
  18. Comment_Parent_ID INT NOT NULL default 0,
  19. Comment_IP NVARCHAR(45) NOT NULL default '',
  20. ) /*$wgDBTableOptions*/;
  21. CREATE INDEX /*i*/comment_page_id_index ON /*$wgDBprefix*/Comments (Comment_Page_ID);
  22. CREATE INDEX /*i*/wiki_user_id ON /*$wgDBprefix*/Comments (Comment_user_id);
  23. CREATE INDEX /*i*/wiki_user_name ON /*$wgDBprefix*/Comments (Comment_Username);