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
|
*.php text eol=lf
|
||||||
*.js text eol=lf
|
*.js text eol=lf
|
||||||
*.css text eol=lf
|
*.css text eol=lf
|
||||||
*.sql 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_convertRatingToPercent.RB = /*setup:itemScalingRB*/;
|
||||||
|
|
||||||
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
|
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
|
||||||
|
|
||||||
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
|
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
|
||||||
|
|
||||||
if ($WH.isset('$WowheadPower')) {
|
if ($WH.isset('$WowheadPower')) {
|
||||||
$WowheadPower.loadScales(3);
|
$WowheadPower.loadScales(3);
|
||||||
$WowheadPower.loadScales(6);
|
$WowheadPower.loadScales(6);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
CREATE TABLE `aowow_sync` (
|
CREATE TABLE `aowow_sync` (
|
||||||
`table` VARCHAR(50) NOT NULL,
|
`table` VARCHAR(50) NOT NULL,
|
||||||
`entry` INT NOT NULL,
|
`entry` INT NOT NULL,
|
||||||
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
|
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
|
||||||
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
|
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
|
||||||
|
|
||||||
|
|
||||||
delimiter |
|
delimiter |
|
||||||
|
|
||||||
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
|
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
BEGIN
|
BEGIN
|
||||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
|
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
|
||||||
END;
|
END;
|
||||||
|
|
|
|
||||||
|
|
||||||
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
|
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
BEGIN
|
BEGIN
|
||||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
|
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
|
||||||
END;
|
END;
|
||||||
|
|
|
|
||||||
|
|
||||||
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
|
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
BEGIN
|
BEGIN
|
||||||
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
|
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
|
||||||
END;
|
END;
|
||||||
|
|
|
|
||||||
|
|
||||||
delimiter ;
|
delimiter ;
|
||||||
|
|||||||
Reference in New Issue
Block a user