Permalink
Browse files

init 6.5.4 upgrade - sql scripts

  • Loading branch information...
1 parent a524da1 commit b920b73c10c17bb79cb67be9d2a00db2d3951146 @cdujeu cdujeu committed Oct 5, 2016
Showing with 123 additions and 0 deletions.
  1. +46 −0 dist/php/6.5.4.mysql
  2. +39 −0 dist/php/6.5.4.pgsql
  3. +38 −0 dist/php/6.5.4.sqlite
View
@@ -0,0 +1,46 @@
+/* SEPARATOR */
+DROP TABLE IF EXISTS ajxp_tasks;
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS ajxp_tasks (
+ uid VARCHAR(255) NOT NULL ,
+ type INTEGER NOT NULL,
+ parent_uid VARCHAR(255) DEFAULT NULL,
+ flags INTEGER NOT NULL,
+ label VARCHAR(255) NOT NULL,
+ user_id VARCHAR(255) NOT NULL,
+ ws_id VARCHAR(32) NOT NULL,
+ status INTEGER NOT NULL,
+ status_msg VARCHAR(500) NOT NULL,
+ progress INTEGER NOT NULL,
+ schedule INTEGER NOT NULL,
+ schedule_value VARCHAR(255) DEFAULT NULL,
+ action VARCHAR(255) NOT NULL,
+ parameters VARCHAR(500) NOT NULL,
+ nodes VARCHAR(500) NOT NULL,
+ creation_date INTEGER NOT NULL DEFAULT 0,
+ status_update INTEGER NOT NULL DEFAULT 0,
+
+ PRIMARY KEY (uid)
+) DEFAULT CHARSET=utf8;
+/* SEPARATOR */
+CREATE INDEX ajxp_task_usr_idx ON ajxp_tasks (user_id);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS `ajxp_mq_queues` (
+ `channel_name` varchar(255) NOT NULL,
+ `content` BLOB NOT NULL,
+ PRIMARY KEY (`channel_name`)
+) DEFAULT CHARSET=utf8;
+/* SEPARATOR */
+DROP TRIGGER IF EXISTS `LOG_UPDATE`;
+/* SEPARATOR */
+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);
View
@@ -0,0 +1,39 @@
+/* SEPARATOR */
+DROP TABLE IF EXISTS ajxp_tasks;
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS ajxp_tasks (
+ uid VARCHAR(255) NOT NULL ,
+ type INTEGER NOT NULL,
+ parent_uid VARCHAR(255) DEFAULT NULL,
+ flags INTEGER NOT NULL,
+ label VARCHAR(255) NOT NULL,
+ user_id VARCHAR(255) NOT NULL,
+ ws_id VARCHAR(32) NOT NULL,
+ status INTEGER NOT NULL,
+ status_msg VARCHAR(500) NOT NULL,
+ progress INTEGER NOT NULL,
+ schedule INTEGER NOT NULL,
+ schedule_value VARCHAR(255) DEFAULT NULL,
+ action VARCHAR(255) NOT NULL,
+ parameters VARCHAR(500) NOT NULL,
+ nodes VARCHAR(500) NOT NULL,
+ creation_date INTEGER NOT NULL DEFAULT 0,
+ status_update INTEGER NOT NULL DEFAULT 0,
+ PRIMARY KEY (uid)
+);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_usr_idx ON ajxp_tasks (user_id);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS ajxp_mq_queues (
+ channel_name varchar(255) NOT NULL,
+ content bytea NOT NULL,
+ PRIMARY KEY (channel_name)
+);
View
@@ -0,0 +1,38 @@
+DROP TABLE IF EXISTS ajxp_tasks;
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS ajxp_tasks (
+ uid VARCHAR(255) NOT NULL ,
+ type INTEGER NOT NULL,
+ parent_uid VARCHAR(255) DEFAULT NULL,
+ flags INTEGER NOT NULL,
+ label VARCHAR(255) NOT NULL,
+ user_id VARCHAR(255) NOT NULL,
+ ws_id VARCHAR(32) NOT NULL,
+ status INTEGER NOT NULL,
+ status_msg VARCHAR(500) NOT NULL,
+ progress INTEGER NOT NULL,
+ schedule INTEGER NOT NULL,
+ schedule_value VARCHAR(255) DEFAULT NULL,
+ action VARCHAR(255) NOT NULL,
+ parameters VARCHAR(500) NOT NULL,
+ nodes VARCHAR(500) NOT NULL,
+ creation_date INTEGER NOT NULL DEFAULT 0,
+ status_update INTEGER NOT NULL DEFAULT 0,
+ PRIMARY KEY (uid)
+);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_usr_idx ON ajxp_tasks (user_id);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_status_idx ON ajxp_tasks (status);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_type ON ajxp_tasks (type);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_schedule ON ajxp_tasks (schedule);
+/* SEPARATOR */
+CREATE INDEX ajxp_task_nodes_idx ON ajxp_tasks (nodes);
+/* SEPARATOR */
+CREATE TABLE IF NOT EXISTS ajxp_mq_queues (
+ channel_name varchar(255) NOT NULL,
+ content BLOB NOT NULL,
+ PRIMARY KEY (`channel_name`)
+);

0 comments on commit b920b73

Please sign in to comment.