diff --git a/spring-batch-core/src/main/resources/org/springframework/batch/core/migration/4.3/migration-mysql.sql b/spring-batch-core/src/main/resources/org/springframework/batch/core/migration/4.3/migration-mysql.sql new file mode 100644 index 000000000..6ccbb2dbc --- /dev/null +++ b/spring-batch-core/src/main/resources/org/springframework/batch/core/migration/4.3/migration-mysql.sql @@ -0,0 +1 @@ +ALTER TABLE BATCH_JOB_EXECUTION_PARAMS MODIFY DATE_VAL DATETIME(6) DEFAULT NULL; \ No newline at end of file diff --git a/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mysql.sql b/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mysql.sql index 5bd10960e..75b57c6be 100644 --- a/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mysql.sql +++ b/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-mysql.sql @@ -29,7 +29,7 @@ CREATE TABLE BATCH_JOB_EXECUTION_PARAMS ( TYPE_CD VARCHAR(6) NOT NULL , KEY_NAME VARCHAR(100) NOT NULL , STRING_VAL VARCHAR(250) , - DATE_VAL DATETIME DEFAULT NULL , + DATE_VAL DATETIME(6) DEFAULT NULL , LONG_VAL BIGINT , DOUBLE_VAL DOUBLE PRECISION , IDENTIFYING CHAR(1) NOT NULL ,