Skip to content

Commit

Permalink
Merge pull request #102 from mderuijter/dd-522-update-termsofuseandac…
Browse files Browse the repository at this point in the history
…cess-flyway-script

DD-522 License flyway script must update existing records in termsofuseandaccess table
  • Loading branch information
janvanmansum authored Jul 14, 2021
2 parents 5b952b1 + 0a187ee commit d425ec7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ BEGIN

END $$;

UPDATE termsofuseandaccess
SET license_id = (SELECT license.id FROM license WHERE license.name = 'CC0')
WHERE termsofuseandaccess.license = 'CC0' AND termsofuseandaccess.license_id IS NULL;

0 comments on commit d425ec7

Please sign in to comment.