-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- +goose Up | ||
INSERT INTO `match_type`(`id`,`name`,`description`) VALUES (13, 'Gotcha', 'Gotcha'); | ||
|
||
CREATE TABLE `statistics_gotcha` ( | ||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`leg_id` int(10) unsigned NOT NULL, | ||
`player_id` int(10) unsigned NOT NULL, | ||
`darts_thrown` int(11) DEFAULT NULL, | ||
`highest_score` int(11) NOT NULL DEFAULT '0', | ||
`times_reset` int(11), | ||
`others_reset` int(11), | ||
`score` int(11), | ||
PRIMARY KEY (`id`), | ||
KEY `fk_statistics_gotcha_leg_id` (`leg_id`), | ||
KEY `fk_statistics_gotcha_player_id` (`player_id`), | ||
CONSTRAINT `fk_statistics_gotcha_leg_id` FOREIGN KEY (`leg_id`) REFERENCES `leg` (`id`), | ||
CONSTRAINT `fk_statistics_gotcha_player_id` FOREIGN KEY (`player_id`) REFERENCES `player` (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
-- +goose Down | ||
DELETE FROM `match_type` WHERE id = 13; | ||
DROP TABLE `statistics_gotcha`; |