-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix database migration scripts (#1061)
* fix sql server migration Signed-off-by: Stefan Klotz <stefan.klotz@bosch.io> * fix postgres migration Signed-off-by: Stefan Klotz <stefan.klotz@bosch.io> * fix db2 migration Signed-off-by: Stefan Klotz <stefan.klotz@bosch.io>
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...itory-jpa/src/main/resources/db/migration/DB2/V1_12_16__add_action_initiated_by___DB2.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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ALTER TABLE sp_action ADD COLUMN initiated_by VARCHAR(64) NOT NULL; | ||
ALTER TABLE sp_action ADD COLUMN initiated_by VARCHAR(64) NOT NULL DEFAULT ''; | ||
ALTER TABLE sp_action ALTER COLUMN initiated_by DROP DEFAULT; | ||
ALTER TABLE sp_target_filter_query ADD COLUMN auto_assign_initiated_by VARCHAR(64); |
6 changes: 4 additions & 2 deletions
6
...main/resources/db/migration/POSTGRESQL/V1_12_16__add_action_initiated_by___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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
ALTER TABLE sp_action | ||
ADD COLUMN initiated_by VARCHAR (64) NOT NULL; | ||
ADD COLUMN initiated_by VARCHAR (64) NOT NULL DEFAULT ''; | ||
ALTER TABLE sp_action | ||
ALTER COLUMN initiated_by DROP DEFAULT; | ||
|
||
ALTER TABLE sp_target_filter_query | ||
ADD COLUMN auto_assign_initiated_by VARCHAR (64); | ||
ADD COLUMN auto_assign_initiated_by VARCHAR (64); |
3 changes: 2 additions & 1 deletion
3
...main/resources/db/migration/SQL_SERVER/V1_12_16__add_action_initiated_by___SQL_SERVER.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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ALTER TABLE sp_action ADD initiated_by VARCHAR(64) NOT NULL; | ||
ALTER TABLE sp_action ADD initiated_by VARCHAR(64) NOT NULL CONSTRAINT DF_SpAction_InitiatedBy DEFAULT ''; | ||
ALTER TABLE sp_action DROP CONSTRAINT DF_SpAction_InitiatedBy; | ||
ALTER TABLE sp_target_filter_query ADD auto_assign_initiated_by VARCHAR(64); |