From 81f34d118a4883188bc443b33fb17c538089a029 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Fri, 14 Oct 2016 17:34:35 -0400 Subject: [PATCH] Adding comment for those upgrading from .m1. Removed column keyword from some of the definitions --- .../org/springframework/cloud/task/migration/migration-h2.sql | 2 ++ .../springframework/cloud/task/migration/migration-hsqldb.sql | 4 +++- .../springframework/cloud/task/migration/migration-mysql.sql | 4 +++- .../springframework/cloud/task/migration/migration-oracle.sql | 2 ++ .../cloud/task/migration/migration-postgresql.sql | 4 +++- .../cloud/task/migration/migration-sqlserver.sql | 2 ++ 6 files changed, 15 insertions(+), 3 deletions(-) diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-h2.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-h2.sql index 3a464c08..fb20ad43 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-h2.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-h2.sql @@ -1,2 +1,4 @@ +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ alter table task_execution add ERROR_MESSAGE VARCHAR(2500); alter table task_execution add EXTERNAL_EXECUTION_ID VARCHAR(255); diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-hsqldb.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-hsqldb.sql index f1f6595e..fb20ad43 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-hsqldb.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-hsqldb.sql @@ -1,2 +1,4 @@ -alter table task_execution add column ERROR_MESSAGE VARCHAR(2500); +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ +alter table task_execution add ERROR_MESSAGE VARCHAR(2500); alter table task_execution add EXTERNAL_EXECUTION_ID VARCHAR(255); diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-mysql.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-mysql.sql index f9e62fa3..943ac2ec 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-mysql.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-mysql.sql @@ -1,3 +1,5 @@ -alter table task_execution add column ERROR_MESSAGE VARCHAR(2500); +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ +alter table task_execution add ERROR_MESSAGE VARCHAR(2500); alter table task_execution add EXTERNAL_EXECUTION_ID VARCHAR(255); diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-oracle.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-oracle.sql index f659bea1..8dd56fed 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-oracle.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-oracle.sql @@ -1,3 +1,5 @@ +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ alter table task_execution add ERROR_MESSAGE varchar2(2500); alter table task_execution add EXTERNAL_EXECUTION_ID varchar2(255); diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-postgresql.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-postgresql.sql index f1f6595e..fb20ad43 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-postgresql.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-postgresql.sql @@ -1,2 +1,4 @@ -alter table task_execution add column ERROR_MESSAGE VARCHAR(2500); +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ +alter table task_execution add ERROR_MESSAGE VARCHAR(2500); alter table task_execution add EXTERNAL_EXECUTION_ID VARCHAR(255); diff --git a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-sqlserver.sql b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-sqlserver.sql index 3a464c08..fb20ad43 100644 --- a/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-sqlserver.sql +++ b/spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/migration/migration-sqlserver.sql @@ -1,2 +1,4 @@ +/* If migrating from 1.1.0.M1 to 1.1.0.M2 you do not need to add +the ERROR_MESSAGE column. */ alter table task_execution add ERROR_MESSAGE VARCHAR(2500); alter table task_execution add EXTERNAL_EXECUTION_ID VARCHAR(255);