Skip to content

Commit

Permalink
add raw sql to populate new table and col
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbywells52 committed Sep 24, 2024
1 parent 9717d55 commit 2aab40d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions backend/src/main/resources/db/changelog/db.changelog-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5707,12 +5707,8 @@ databaseChangeLog:
id: populate-default-provider-column
author: [email protected]
changes:
- sql:
comment: Populate the default provider column with current provider
sql: |
INSERT INTO ${database.defaultSchemaName}.facility (
default_ordering_provider_id
)
SELECT
ordering_provider_id
FROM ${database.defaultSchemaName}.facility;
UPDATE ${database.defaultSchemaName}.facility
SET
default_ordering_provider_id = facility.ordering_provider_id
WHERE facility.default_ordering_provider_id is NULL

0 comments on commit 2aab40d

Please sign in to comment.