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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 26, 2016
2 parents 7310b06 + 494a990 commit 24fab5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/meta.syncable/create.mysql
Expand Up @@ -35,4 +35,4 @@ DROP TRIGGER IF EXISTS `LOG_UPDATE`;

CREATE TRIGGER `LOG_UPDATE` AFTER UPDATE ON `ajxp_index`
FOR EACH ROW INSERT INTO ajxp_changes (repository_identifier, node_id,source,target,type)
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);
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);
8 changes: 8 additions & 0 deletions dist/php/6.5.2.mysql
@@ -1,3 +1,4 @@
-- Creating table ajxp_tasks
DROP TABLE IF EXISTS ajxp_tasks;

CREATE TABLE IF NOT EXISTS ajxp_tasks (
Expand Down Expand Up @@ -28,3 +29,10 @@ CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);

-- Rebuilding ajxp_changes trigger
DROP TRIGGER IF EXISTS `LOG_UPDATE`;

CREATE TRIGGER `LOG_UPDATE` AFTER UPDATE ON `ajxp_index`
FOR EACH ROW INSERT INTO ajxp_changes (repository_identifier, node_id,source,target,type)
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 comments on commit 24fab5d

Please sign in to comment.