diff --git a/backend-compliance/migrations/126_gf_dienstvertrag_template.sql b/backend-compliance/migrations/126_gf_dienstvertrag_template.sql index 39aefc80..1adcd560 100644 --- a/backend-compliance/migrations/126_gf_dienstvertrag_template.sql +++ b/backend-compliance/migrations/126_gf_dienstvertrag_template.sql @@ -261,5 +261,5 @@ $template$, NOW(), NOW() ; -SELECT document_type, title, LENGTH(content) AS content_chars, jsonb_array_length(placeholders) AS num_placeholders, status, version +SELECT document_type, title, LENGTH(content) AS content_chars, status, version FROM compliance_legal_templates WHERE document_type = 'managing_director_employment_contract' ORDER BY created_at DESC LIMIT 1; diff --git a/backend-compliance/migrations/127_arbeitsvertrag_template.sql b/backend-compliance/migrations/127_arbeitsvertrag_template.sql index 7a72daea..a95b8a26 100644 --- a/backend-compliance/migrations/127_arbeitsvertrag_template.sql +++ b/backend-compliance/migrations/127_arbeitsvertrag_template.sql @@ -258,5 +258,5 @@ $template$, NOW(), NOW() ; -SELECT document_type, title, LENGTH(content) AS content_chars, jsonb_array_length(placeholders) AS num_placeholders, status, version +SELECT document_type, title, LENGTH(content) AS content_chars, status, version FROM compliance_legal_templates WHERE document_type = 'employment_contract_de' ORDER BY created_at DESC LIMIT 1; diff --git a/backend-compliance/migrations/128_gesellschafterliste_template.sql b/backend-compliance/migrations/128_gesellschafterliste_template.sql index cdb951b5..a8fada9a 100644 --- a/backend-compliance/migrations/128_gesellschafterliste_template.sql +++ b/backend-compliance/migrations/128_gesellschafterliste_template.sql @@ -98,4 +98,4 @@ $template$, '["COMPANY_NAME","COMPANY_SEAT","COMPANY_REGISTRY_COURT","HRB_NUMBER","LIST_DATE","LIST_AUTHOR","LIST_AUTHOR_ROLE","LIST_REASON","DOCUMENT_VERSION","GESELLSCHAFTER_TABELLE","STAMMKAPITAL_EUR","HAS_VERANDERUNGEN","VERANDERUNGEN_BESCHREIBUNG","VERANDERUNG_GRUNDLAGE","HAS_NOTARY_LIST","NOTARY_NAME","NOTARY_ADDRESS","NOTARY_URNR","NOTARIAL_DATE","SIGNATORY_NAME","SIGNATORY_ROLE","MULTI_SIGNATORY","SIGNATORY_2_NAME","SIGNATORY_2_ROLE"]'::jsonb, 'de','DE','mit','MIT License','BreakPilot Compliance',false,true,'1.0.0','published',NOW(),NOW() ; -SELECT document_type, title, LENGTH(content) AS content_chars, jsonb_array_length(placeholders) AS num_placeholders FROM compliance_legal_templates WHERE document_type = 'gesellschafterliste' ORDER BY created_at DESC LIMIT 1; +SELECT document_type, title, LENGTH(content) AS content_chars FROM compliance_legal_templates WHERE document_type = 'gesellschafterliste' ORDER BY created_at DESC LIMIT 1;