Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#359 - Remove unused tables #361

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ public class ContextualizedTermCode {
@Column(name = "termcode_id", nullable = false)
private int termCodeId;
@Basic
@Column(name = "mapping_id", nullable = true)
private Integer mappingId;
@Basic
@Column(name = "ui_profile_id", nullable = true)
private Integer uiProfileId;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
package de.numcodex.feasibility_gui_backend.terminology.persistence;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ContextualizedTermCodeRepository extends JpaRepository<ContextualizedTermCode, Long> {

@Query("select ct.contextTermcodeHash from CriteriaSet cs inner join ContextualizedTermCodeToCriteriaSet ctctcs on ctctcs.criteriaSetId = cs.id inner join ContextualizedTermCode ct on ctctcs.contextTermcodeHash = ct.contextTermcodeHash where ct.contextTermcodeHash in :contextTermCodeHashList and cs.url = :criteriaSetUrl")
List<String> filterByCriteriaSetUrl(@Param("criteriaSetUrl") String criteriaSetUrl,
@Param("contextTermCodeHashList") List<String> contextTermCodeHashList);
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 7 additions & 0 deletions src/main/resources/db/migration/V10__drop_unused_tables.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DROP INDEX idx_mapping_name_mapping;
ALTER TABLE contextualized_termcode DROP CONSTRAINT mapping_id_fk;
ALTER TABLE contextualized_termcode DROP COLUMN mapping_id;

DROP TABLE mapping;
DROP TABLE contextualized_termcode_to_criteria_set;
DROP TABLE criteria_set;
Loading