Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 494a990

Browse files
committed
Re-setting meta.syncable trigger
1 parent 1c8dc98 commit 494a990

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

core/src/plugins/meta.syncable/create.mysql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ DROP TRIGGER IF EXISTS `LOG_UPDATE`;
3535

3636
CREATE TRIGGER `LOG_UPDATE` AFTER UPDATE ON `ajxp_index`
3737
FOR EACH ROW INSERT INTO ajxp_changes (repository_identifier, node_id,source,target,type)
38-
VALUES (new.repository_identifier, new.node_id, old.node_path, new.node_path, CASE old.node_path = new.node_path WHEN true THEN 'content' ELSE 'path' END);
38+
VALUES (new.repository_identifier, new.node_id, old.node_path, new.node_path, CASE old.node_path COLLATE utf8_bin = new.node_path COLLATE utf8_bin WHEN true THEN 'content' ELSE 'path' END);

dist/php/6.5.2.mysql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-- Creating table ajxp_tasks
12
DROP TABLE IF EXISTS ajxp_tasks;
23

34
CREATE TABLE IF NOT EXISTS ajxp_tasks (
@@ -28,3 +29,10 @@ CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
2829
CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
2930
CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
3031
CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
32+
33+
-- Rebuilding ajxp_changes trigger
34+
DROP TRIGGER IF EXISTS `LOG_UPDATE`;
35+
36+
CREATE TRIGGER `LOG_UPDATE` AFTER UPDATE ON `ajxp_index`
37+
FOR EACH ROW INSERT INTO ajxp_changes (repository_identifier, node_id,source,target,type)
38+
VALUES (new.repository_identifier, new.node_id, old.node_path, new.node_path, CASE old.node_path COLLATE utf8_bin = new.node_path COLLATE utf8_bin WHEN true THEN 'content' ELSE 'path' END);

0 commit comments

Comments
 (0)