Commit 5a4d36cb authored by Siiri Tann's avatar Siiri Tann
Browse files

Merge branch 'TEIS-2726' into 'develop'

TEIS-2726: updated FileReferenceEntity.

Closes TEIS-2726

See merge request teis/files-service!71
parents 1278923f d7f3e16c
theGroup=ee.sm.ti.teis
theVersion=1.22.0
commonsVersion=1.28.0
commonApiGatewayVersion=1.28.0
pluginVersion=1.4.1
theVersion=1.23.0-SNAPSHOT
commonsVersion=1.29.0-SNAPSHOT
commonApiGatewayVersion=1.29.0-SNAPSHOT
pluginVersion=1.4.3
schedulerVersion=1.17.0
......@@ -33,6 +33,7 @@ public class FileReferenceEntity extends RequestIdAuditedEntity {
@NotNull
private UUID objectId;
private UUID personId;
@NotNull
private String objectType;
private String contextType;
......
......@@ -28,4 +28,8 @@ alter table file_reference alter column context type jsonb USING context::jsonb;
GRANT DELETE ON file_reference TO ${db_app_username};
--changeset jyrgen:2020-06-08.add-file-reference-virus-scan-status
alter table file_reference add column scan_status varchar(255);
\ No newline at end of file
alter table file_reference add column scan_status varchar(255);
--changeset siiri:2021-12-21.TEIS-2726.update-file-reference
ALTER TABLE file_reference ADD COLUMN person_id uuid;
CREATE INDEX file_reference_person_id_idx ON file_reference (person_id);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment