-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4089 from navikt/slett-egen-regi-fra-api
Slett egen regi tiltak fra api
- Loading branch information
Showing
7 changed files
with
11 additions
and
62 deletions.
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
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
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
11 changes: 11 additions & 0 deletions
11
mulighetsrommet-api/src/main/resources/db/migration/V166__slett_egen_regi_tiltak.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,11 @@ | ||
alter table deltaker drop constraint deltaker_tiltaksgjennomforing_id_fkey; | ||
alter table deltaker | ||
add constraint deltaker_tiltaksgjennomforing_id_fkey | ||
foreign key (tiltaksgjennomforing_id) references tiltaksgjennomforing(id) on delete cascade; | ||
|
||
delete from tiltaksgjennomforing | ||
using tiltakstype | ||
where tiltaksgjennomforing.tiltakstype_id = tiltakstype.id | ||
and tiltakstype.arena_kode in ('IPSUNG', 'UTVAOONAV', 'INDJOBSTOT'); | ||
|
||
alter table tiltaksgjennomforing drop column sanity_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