Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add migration scripts for this feature
- Loading branch information
Jesse Eichar
committed
Mar 27, 2015
1 parent
849ac2c
commit 0c2745d
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v300/migrate-cswservice-default.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,9 @@ | ||
ALTER TABLE ServiceParameters ADD COLUMN occur varchar(1) default '+'; | ||
UPDATE ServiceParameters SET occur='+'; | ||
|
||
create sequence serviceparameter_id_seq start with 1 increment by 1; | ||
alter table serviceparameters add column id integer; | ||
UPDATE serviceparameters SET ID=(SELECT NEXT VALUE FOR serviceparameter_id_seq) | ||
|
||
ALTER TABLE SERVICEPARAMETERS ALTER COLUMN id integer not null; | ||
ALTER TABLE SERVICEPARAMETERS ADD PRIMARY KEY (id) |
8 changes: 8 additions & 0 deletions
8
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v300/migrate-cswservice-postgres.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,8 @@ | ||
ALTER TABLE ServiceParameters ADD COLUMN occur varchar(1) default '+'; | ||
UPDATE ServiceParameters SET occur='+'; | ||
|
||
create sequence serviceparameter_id_seq start with 1 increment by 1; | ||
alter table serviceparameters add column id integer; | ||
UPDATE serviceparameters SET ID=nextval('serviceparameter_id_seq') | ||
|
||
ALTER TABLE SERVICEPARAMETERS ADD PRIMARY KEY (id) |
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