-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCT-27 Added Oracle, Mysql, Postgres init scripts
* Added Mysql to DatabaseTypes Resolves #27
- Loading branch information
Showing
5 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
spring-cloud-task-core/src/main/resources/org/springframework/cloud/task/schema-mysql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
CREATE TABLE TASK_EXECUTION ( | ||
TASK_EXECUTION_ID VARCHAR(100) NOT NULL PRIMARY KEY , | ||
START_TIME DATETIME DEFAULT NULL , | ||
END_TIME DATETIME DEFAULT NULL , | ||
TASK_NAME VARCHAR(100) , | ||
EXIT_CODE INTEGER , | ||
EXIT_MESSAGE VARCHAR(2500) , | ||
LAST_UPDATED TIMESTAMP , | ||
STATUS_CODE VARCHAR(10) | ||
); | ||
|
||
CREATE TABLE TASK_EXECUTION_PARAMS ( | ||
TASK_EXECUTION_ID VARCHAR(100) NOT NULL , | ||
TASK_PARAM VARCHAR(250) , | ||
constraint TASK_EXEC_PARAMS_FK foreign key (TASK_EXECUTION_ID) | ||
references TASK_EXECUTION(TASK_EXECUTION_ID) | ||
) ; |
18 changes: 18 additions & 0 deletions
18
...ng-cloud-task-core/src/main/resources/org/springframework/cloud/task/schema-oracle10g.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
CREATE TABLE TASK_EXECUTION ( | ||
TASK_EXECUTION_ID VARCHAR2(100) NOT NULL PRIMARY KEY , | ||
START_TIME TIMESTAMP DEFAULT NULL , | ||
END_TIME TIMESTAMP DEFAULT NULL , | ||
TASK_NAME VARCHAR2(100) , | ||
EXIT_CODE INTEGER , | ||
EXIT_MESSAGE VARCHAR2(2500) , | ||
LAST_UPDATED TIMESTAMP , | ||
STATUS_CODE VARCHAR2(10) | ||
); | ||
|
||
CREATE TABLE TASK_EXECUTION_PARAMS ( | ||
TASK_EXECUTION_ID VARCHAR2(100) NOT NULL , | ||
TASK_PARAM VARCHAR2(250) , | ||
constraint TASK_EXEC_PARAMS_FK foreign key (TASK_EXECUTION_ID) | ||
references TASK_EXECUTION(TASK_EXECUTION_ID) | ||
) ; |
18 changes: 18 additions & 0 deletions
18
...g-cloud-task-core/src/main/resources/org/springframework/cloud/task/schema-postgresql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
CREATE TABLE TASK_EXECUTION ( | ||
TASK_EXECUTION_ID VARCHAR(100) NOT NULL PRIMARY KEY , | ||
START_TIME TIMESTAMP DEFAULT NULL , | ||
END_TIME TIMESTAMP DEFAULT NULL , | ||
TASK_NAME VARCHAR(100) , | ||
EXIT_CODE INTEGER , | ||
EXIT_MESSAGE VARCHAR(2500) , | ||
LAST_UPDATED TIMESTAMP , | ||
STATUS_CODE VARCHAR(10) | ||
); | ||
|
||
CREATE TABLE TASK_EXECUTION_PARAMS ( | ||
TASK_EXECUTION_ID VARCHAR(100) NOT NULL , | ||
TASK_PARAM VARCHAR(250) , | ||
constraint TASK_EXEC_PARAMS_FK foreign key (TASK_EXECUTION_ID) | ||
references TASK_EXECUTION(TASK_EXECUTION_ID) | ||
) ; |