mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Git/Misc
* force text files eol to \n
This commit is contained in:
10
.gitattributes
vendored
10
.gitattributes
vendored
@@ -1,4 +1,14 @@
|
||||
* text=input
|
||||
|
||||
*.php text eol=lf
|
||||
*.js text eol=lf
|
||||
*.css text eol=lf
|
||||
*.sql text eol=lf
|
||||
aowow text eol=lf
|
||||
prQueue text eol=lf
|
||||
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.gif binary
|
||||
*.ttf binary
|
||||
*.swf binary
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
$WH.g_convertRatingToPercent.RB = /*setup:itemScalingRB*/;
|
||||
|
||||
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
|
||||
|
||||
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
|
||||
|
||||
if ($WH.isset('$WowheadPower')) {
|
||||
$WowheadPower.loadScales(3);
|
||||
$WowheadPower.loadScales(6);
|
||||
}
|
||||
$WH.g_convertRatingToPercent.RB = /*setup:itemScalingRB*/;
|
||||
|
||||
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
|
||||
|
||||
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
|
||||
|
||||
if ($WH.isset('$WowheadPower')) {
|
||||
$WowheadPower.loadScales(3);
|
||||
$WowheadPower.loadScales(6);
|
||||
}
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
CREATE TABLE `aowow_sync` (
|
||||
`table` VARCHAR(50) NOT NULL,
|
||||
`entry` INT NOT NULL,
|
||||
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
|
||||
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
|
||||
|
||||
|
||||
delimiter |
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
|
||||
END;
|
||||
|
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
|
||||
END;
|
||||
|
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
|
||||
END;
|
||||
|
|
||||
|
||||
delimiter ;
|
||||
CREATE TABLE `aowow_sync` (
|
||||
`table` VARCHAR(50) NOT NULL,
|
||||
`entry` INT NOT NULL,
|
||||
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
|
||||
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
|
||||
|
||||
|
||||
delimiter |
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
|
||||
END;
|
||||
|
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
|
||||
END;
|
||||
|
|
||||
|
||||
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
|
||||
END;
|
||||
|
|
||||
|
||||
delimiter ;
|
||||
|
||||
Reference in New Issue
Block a user