Skip to content

Commit

Permalink
fix(backend): reset etag for data_use_terms_table updates (#3356)
Browse files Browse the repository at this point in the history
* fix(backend): reset etag for data_use_terms_table updates

fixes #3354

* Update schema documentation based on migration changes

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
corneliusroemer and actions-user authored Dec 3, 2024
1 parent 5b3bf02 commit 6715be4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/docs/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,13 @@ CREATE INDEX user_groups_table_user_name_idx ON public.user_groups_table USING b
CREATE TRIGGER update_tracker_trigger AFTER INSERT OR DELETE OR UPDATE OR TRUNCATE ON public.current_processing_pipeline FOR EACH STATEMENT EXECUTE FUNCTION public.update_table_tracker();


--
-- Name: data_use_terms_table update_tracker_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER update_tracker_trigger AFTER INSERT OR DELETE OR UPDATE OR TRUNCATE ON public.data_use_terms_table FOR EACH STATEMENT EXECUTE FUNCTION public.update_table_tracker();


--
-- Name: external_metadata update_tracker_trigger; Type: TRIGGER; Schema: public; Owner: postgres
--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.loculus.backend.api.Organism
import org.loculus.backend.api.ProcessedData
import org.loculus.backend.api.VersionStatus
import org.loculus.backend.config.BackendConfig
import org.loculus.backend.service.datauseterms.DATA_USE_TERMS_TABLE_NAME
import org.loculus.backend.service.groupmanagement.GROUPS_TABLE_NAME
import org.loculus.backend.service.submission.CURRENT_PROCESSING_PIPELINE_TABLE_NAME
import org.loculus.backend.service.submission.EXTERNAL_METADATA_TABLE_NAME
Expand Down Expand Up @@ -41,6 +42,7 @@ val RELEASED_DATA_RELATED_TABLES: List<String> =
SEQUENCE_ENTRIES_TABLE_NAME,
SEQUENCE_ENTRIES_PREPROCESSED_DATA_TABLE_NAME,
SEQUENCE_UPLOAD_AUX_TABLE_NAME,
DATA_USE_TERMS_TABLE_NAME,
)

@Service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT create_update_trigger_for_table('data_use_terms_table');

0 comments on commit 6715be4

Please sign in to comment.