Add Migration Reviewer Workflow (#4828)

* Add new workflow

* Add some whitespace

* Empty spaces in non-migration file

* wip

* Tidy up workflow
This commit is contained in:
Tadgh 2023-05-06 13:33:17 -04:00 committed by GitHub
parent 17423e4831
commit 93f93d5e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,24 @@
name: Reviewer Check
on:
pull_request
jobs:
build:
runs-on: ubuntu-latest
name: Add Migration Reviewers if Necessary
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if migrations changed
id: migrations-changed
uses: tj-actions/changed-files@v35
with:
files: |
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/HapiFhirJpaMigrationTasks.java
- name: Add migration reviewers if migration files changed
if: steps.migrations-changed.outputs.any_changed == 'true'
uses: madrapps/add-reviewers@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: michaelabuckley,jamesagnew

View File

@ -103,6 +103,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
// HAPI-FHIR #4801 - Add New Index On HFJ_RESOURCE
Builder.BuilderWithTableName resourceTable = version.onTable("HFJ_RESOURCE");
resourceTable
.addIndex("20230502.1", "IDX_RES_RESID_UPDATED")
.unique(false)

View File

@ -69,6 +69,8 @@ public class ResourceIndexedSearchParamUri extends BaseResourceIndexedSearchPara
@FullTextField
public String myUri;
@Id
@SequenceGenerator(name = "SEQ_SPIDX_URI", sequenceName = "SEQ_SPIDX_URI")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_SPIDX_URI")