-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdbchanges.sql
More file actions
executable file
·30 lines (26 loc) · 1.07 KB
/
Copy pathdbchanges.sql
File metadata and controls
executable file
·30 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* NEWS STUFF */
CREATE TABLE `newznab`.`newspost` (
`ID` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`parentID` INT( 11 ) NOT NULL DEFAULT '0',
`userID` INT( 11 ) UNSIGNED NOT NULL ,
`subject` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL ,
`message` TEXT COLLATE utf8_unicode_ci NOT NULL ,
`locked` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
`sticky` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',
`replies` INT( 11 ) UNSIGNED NOT NULL DEFAULT '0',
`createddate` DATETIME NOT NULL ,
`updateddate` DATETIME NOT NULL ,
PRIMARY KEY ( `ID` ) ,
KEY `parentID` ( `parentID` ) ,
KEY `userID` ( `userID` ) ,
KEY `createddate` ( `createddate` ) ,
KEY `updateddate` ( `updateddate` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci;
SET SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO';
/* Uncomment if you want to migrate the old forum posts to your new news posts
INSERT INTO `newznab`.`newspost`
SELECT *
FROM `newznab`.`forumpost` ;
*/
/* Premium ads stuff */
ALTER TABLE `userroles` ADD `hideads` TINYINT( 1 ) NOT NULL DEFAULT '0'