forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into Delta-RnD-Med
- Loading branch information
Showing
154 changed files
with
5,767 additions
and
5,068 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
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
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,31 @@ | ||
# Updating DB from 59.220.6 to 59.220.7 | ||
# Adds SS220 toggle prefs ~Maxiemar | ||
|
||
DROP TABLE IF EXISTS `player_220`; | ||
CREATE TABLE `player_220` ( | ||
`ckey` VARCHAR(32) NOT NULL COLLATE utf8mb4_unicode_ci, | ||
`toggles` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`ckey`) USING BTREE | ||
) COLLATE = utf8mb4_unicode_ci ENGINE = InnoDB; | ||
|
||
ALTER TABLE `player_220` | ||
ADD CONSTRAINT `fk_player_220_ckey` | ||
FOREIGN KEY (`ckey`) REFERENCES `player`(`ckey`) | ||
ON DELETE CASCADE | ||
ON UPDATE CASCADE; | ||
|
||
DROP TRIGGER IF EXISTS `player_insert`; | ||
DELIMITER // | ||
CREATE TRIGGER `player_insert` | ||
AFTER INSERT ON `player` | ||
FOR EACH ROW | ||
BEGIN | ||
INSERT INTO `player_220` (`ckey`) | ||
VALUES (NEW.ckey); | ||
END; | ||
// | ||
DELIMITER ; | ||
|
||
INSERT INTO `player_220` (`ckey`) | ||
SELECT `ckey` | ||
FROM `player`; |
Oops, something went wrong.