This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
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 #24 from admin-ch/feature/certificate-light
ensure manually added certificates are not removed by sync
- Loading branch information
Showing
8 changed files
with
121 additions
and
9 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
15 changes: 15 additions & 0 deletions
15
...-backend-verifier-data/src/main/resources/db/migration/pgsql/V0_4__certificate_source.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,15 @@ | ||
/* | ||
* Created by Ubique Innovation AG | ||
* https://www.ubique.ch | ||
* Copyright (c) 2021. All rights reserved. | ||
*/ | ||
|
||
alter table t_country_specific_certificate_authority add column source character varying(10); | ||
update t_country_specific_certificate_authority set source = 'SYNC'; | ||
alter table t_country_specific_certificate_authority alter column source set not null; | ||
update t_country_specific_certificate_authority set source = 'MANUAL' where origin = 'CH'; | ||
|
||
alter table t_document_signer_certificate add column source character varying(10); | ||
update t_document_signer_certificate set source = 'SYNC'; | ||
alter table t_document_signer_certificate alter column source set not null; | ||
update t_document_signer_certificate set source = 'MANUAL' where origin = 'CH'; |
15 changes: 15 additions & 0 deletions
15
...-verifier-data/src/main/resources/db/migration/pgsql_cluster/V0_4__certificate_source.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,15 @@ | ||
/* | ||
* Created by Ubique Innovation AG | ||
* https://www.ubique.ch | ||
* Copyright (c) 2021. All rights reserved. | ||
*/ | ||
|
||
alter table t_country_specific_certificate_authority add column source character varying(10); | ||
update t_country_specific_certificate_authority set source = 'SYNC'; | ||
alter table t_country_specific_certificate_authority alter column source set not null; | ||
update t_country_specific_certificate_authority set source = 'MANUAL' where origin = 'CH'; | ||
|
||
alter table t_document_signer_certificate add column source character varying(10); | ||
update t_document_signer_certificate set source = 'SYNC'; | ||
alter table t_document_signer_certificate alter column source set not null; | ||
update t_document_signer_certificate set source = 'MANUAL' where origin = 'CH'; |
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
16 changes: 16 additions & 0 deletions
16
...-model/src/main/java/ch/admin/bag/covidcertificate/backend/verifier/model/CertSource.java
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,16 @@ | ||
/* | ||
* Copyright (c) 2021 Ubique Innovation AG <https://www.ubique.ch> | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
* | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
package ch.admin.bag.covidcertificate.backend.verifier.model; | ||
|
||
public enum CertSource { | ||
MANUAL, | ||
SYNC; | ||
} |
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