This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a table for blocklist details
- Loading branch information
Jeff Balogh
committed
Mar 31, 2011
1 parent
36bf983
commit 2439176
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
DROP TABLE IF EXISTS `bldetails`; | ||
CREATE TABLE `bldetails` ( | ||
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, | ||
`created` datetime NOT NULL, | ||
`modified` datetime NOT NULL, | ||
`name` varchar(255) NOT NULL, | ||
`why` longtext NOT NULL, | ||
`who` longtext NOT NULL, | ||
`bug` varchar(200) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
ALTER TABLE blitems | ||
ADD COLUMN `details_id` integer UNIQUE, | ||
ADD CONSTRAINT FOREIGN KEY (`details_id`) REFERENCES `bldetails` (`id`); | ||
|
||
ALTER TABLE blplugins | ||
ADD COLUMN `details_id` integer UNIQUE, | ||
ADD CONSTRAINT FOREIGN KEY (`details_id`) REFERENCES `bldetails` (`id`); | ||
|
||
ALTER TABLE blgfxdrivers | ||
ADD COLUMN `details_id` integer UNIQUE, | ||
ADD CONSTRAINT FOREIGN KEY (`details_id`) REFERENCES `bldetails` (`id`); | ||
|
||
UPDATE blitems SET created=NOW() WHERE created IS NULL; | ||
UPDATE blplugins SET created=NOW() WHERE created IS NULL; | ||
UPDATE blgfxdrivers SET created=NOW() WHERE created IS NULL; |