From 6b199f342292b8f49a03ece0acccc9e18453d4b2 Mon Sep 17 00:00:00 2001 From: Esa Puttonen Date: Sat, 14 Jun 2014 13:52:35 +0300 Subject: [PATCH] Support MySql 5.5.x for travis ci --- .../src/main/resources/scripts/db/mysql.create.ddl.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nflow-engine/src/main/resources/scripts/db/mysql.create.ddl.sql b/nflow-engine/src/main/resources/scripts/db/mysql.create.ddl.sql index 0fa1da6a7..38321c404 100644 --- a/nflow-engine/src/main/resources/scripts/db/mysql.create.ddl.sql +++ b/nflow-engine/src/main/resources/scripts/db/mysql.create.ddl.sql @@ -9,13 +9,18 @@ create table if not exists nflow_workflow ( next_activation timestamp null, is_processing boolean not null default false, retries int not null default 0, - created timestamp not null default current_timestamp, + created timestamp not null, modified timestamp not null default current_timestamp on update current_timestamp, owner varchar(64), constraint nflow_workflow_uniq unique (type, external_id), index nflow_workflow(next_activation) ); +drop trigger if exists nflow_workflow_insert; + +create trigger nflow_workflow_insert before insert on `nflow_workflow` + for each row set new.created = now(); + create table if not exists nflow_workflow_action ( id int not null auto_increment primary key, workflow_id int not null,