From 782530aad89f3e8bcc291748d769b68b1a6ef7b8 Mon Sep 17 00:00:00 2001 From: Bhattarapong Somwong Date: Mon, 10 Jun 2024 15:20:28 +0700 Subject: [PATCH] #2020 add and remove columns # Conflicts: # apps/cli/src/backup/projects/export/queries.ts --- apps/cli/src/backup/projects/export/queries.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cli/src/backup/projects/export/queries.ts b/apps/cli/src/backup/projects/export/queries.ts index 4fa2672cf..93a199d46 100644 --- a/apps/cli/src/backup/projects/export/queries.ts +++ b/apps/cli/src/backup/projects/export/queries.ts @@ -90,10 +90,11 @@ export const RFM_MODELS = ` ` export const RFM_CLASSIFICATIONS = ` - select cr.classification_result_id, m.model_id, cr.recording_id, cr.species_id, cr.songtype_id, st.songtype, cr.present + select cr.classification_result_id, m.model_id, m.name as model_name, cr.recording_id, cr.species_id, sp.name as species_name, cr.songtype_id, st.songtype, cr.present from classification_results cr join job_params_classification jpc on cr.job_id = jpc.job_id join models m on jpc.model_id = m.model_id join songtypes st on cr.songtype_id = st.songtype_id + join species sp on cr.species_id = sp.species_id where m.model_type_id = 4 and m.project_id = $projectId `