* force text files eol to \n
This commit is contained in:
Sarjuuk
2024-07-30 17:56:06 +02:00
parent 07e001ee9c
commit b5c2f7a296
3 changed files with 51 additions and 41 deletions

10
.gitattributes vendored
View File

@@ -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

View File

@@ -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);
} }

View File

@@ -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 ;