Skip to content

Commit 6dc83b8

Browse files
committed
Replaced increment table with sequnce for sqlserver
resolves #781
1 parent 45d7662 commit 6dc83b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/schema-sqlserver.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CREATE TABLE TASK_TASK_BATCH (
2525
references TASK_EXECUTION(TASK_EXECUTION_ID)
2626
) ;
2727

28-
CREATE TABLE TASK_SEQ (ID BIGINT IDENTITY);
28+
CREATE SEQUENCE TASK_SEQ START WITH 0 MINVALUE 0 MAXVALUE 9223372036854775807 NO CACHE NO CYCLE;
2929

3030
CREATE TABLE TASK_LOCK (
3131
LOCK_KEY CHAR(36) NOT NULL,

0 commit comments

Comments
 (0)