Skip to content

Commit

Permalink
Fix database migration scripts (#1061)
Browse files Browse the repository at this point in the history
* 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
StefanKlt authored Feb 8, 2021
1 parent d1c60d6 commit ba2b3a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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);
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);
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);

0 comments on commit ba2b3a6

Please sign in to comment.