-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/resources/db/migration/V1.0.35__update_sivilstand_sivilstand_type.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,20 @@ | ||
-- Table: SIVILSTAND | ||
|
||
alter table SIVILSTAND | ||
rename column SIVILSTAND_TYPE to SIVILSTAND_TYPE_OLD; | ||
|
||
ALTER TABLE SIVILSTAND | ||
ADD COLUMN SIVILSTAND TEXT; | ||
|
||
UPDATE SIVILSTAND | ||
SET SIVILSTAND = 'GIFT_SAMBOER' | ||
WHERE SIVILSTAND_TYPE_OLD = 'GIFT'; | ||
|
||
UPDATE SIVILSTAND | ||
SET SIVILSTAND = 'BOR_ALENE_MED_BARN' | ||
WHERE SIVILSTAND_TYPE_OLD = 'BOR_ALENE_MED_BARN'; | ||
|
||
alter table SIVILSTAND | ||
drop column SIVILSTAND_TYPE_OLD; | ||
|
||
drop type if exists SIVILSTAND_TYPE cascade; |
21 changes: 0 additions & 21 deletions
21
..._update_boforhold_sivilstand_kodeverk.sql → ...pdate_barn_i_hustand_periode_bostatus.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