Skip to content

Commit b5c2f7a

Browse files
committed
Git/Misc
* force text files eol to \n
1 parent 07e001e commit b5c2f7a

File tree

3 files changed

+51
-41
lines changed

3 files changed

+51
-41
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1+
* text=input
2+
13
*.php text eol=lf
24
*.js text eol=lf
35
*.css text eol=lf
46
*.sql text eol=lf
7+
aowow text eol=lf
8+
prQueue text eol=lf
9+
10+
*.png binary
11+
*.jpg binary
12+
*.gif binary
13+
*.ttf binary
14+
*.swf binary
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$WH.g_convertRatingToPercent.RB = /*setup:itemScalingRB*/;
2-
3-
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
4-
5-
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
6-
7-
if ($WH.isset('$WowheadPower')) {
8-
$WowheadPower.loadScales(3);
9-
$WowheadPower.loadScales(6);
10-
}
1+
$WH.g_convertRatingToPercent.RB = /*setup:itemScalingRB*/;
2+
3+
$WH.g_convertScalingFactor.SV = /*setup:itemScalingSV*/;
4+
5+
$WH.g_convertScalingFactor.SD = /*setup:itemScalingSD*/;
6+
7+
if ($WH.isset('$WowheadPower')) {
8+
$WowheadPower.loadScales(3);
9+
$WowheadPower.loadScales(6);
10+
}

setup/tools/trigger_example.txt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
CREATE TABLE `aowow_sync` (
2-
`table` VARCHAR(50) NOT NULL,
3-
`entry` INT NOT NULL,
4-
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
5-
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
6-
7-
8-
delimiter |
9-
10-
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
11-
FOR EACH ROW
12-
BEGIN
13-
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
14-
END;
15-
|
16-
17-
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
18-
FOR EACH ROW
19-
BEGIN
20-
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
21-
END;
22-
|
23-
24-
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
25-
FOR EACH ROW
26-
BEGIN
27-
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
28-
END;
29-
|
30-
31-
delimiter ;
1+
CREATE TABLE `aowow_sync` (
2+
`table` VARCHAR(50) NOT NULL,
3+
`entry` INT NOT NULL,
4+
`action` TINYINT NOT NULL COMMENT '0:delete; 1:insert; 2:update'
5+
) COLLATE='utf8_general_ci' ENGINE=MyISAM;
6+
7+
8+
delimiter |
9+
10+
CREATE TRIGGER aowow_sync_<table>_delete BEFORE DELETE ON <table>
11+
FOR EACH ROW
12+
BEGIN
13+
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', OLD.entry, 0);
14+
END;
15+
|
16+
17+
CREATE TRIGGER aowow_sync_<table>_insert AFTER INSERT ON <table>
18+
FOR EACH ROW
19+
BEGIN
20+
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 1);
21+
END;
22+
|
23+
24+
CREATE TRIGGER aowow_sync_<table>_update AFTER UPDATE ON <table>
25+
FOR EACH ROW
26+
BEGIN
27+
REPLACE INTO aowow_sync (`table`, `entry`, `action`) VALUES ('<table>', NEW.entry, 2);
28+
END;
29+
|
30+
31+
delimiter ;

0 commit comments

Comments
 (0)