fix: Migration 022 — schema public statt compliance (compliance_legal_templates)
All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Successful in 36s
CI / test-python-backend-compliance (push) Successful in 33s
CI / test-python-document-crawler (push) Successful in 24s
CI / test-python-dsms-gateway (push) Successful in 20s
All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Successful in 36s
CI / test-python-backend-compliance (push) Successful in 33s
CI / test-python-document-crawler (push) Successful in 24s
CI / test-python-dsms-gateway (push) Successful in 20s
This commit is contained in:
@@ -103,7 +103,7 @@ def main() -> None:
|
||||
for doc_type, lang, transforms in TARGETS:
|
||||
rows = conn.execute(
|
||||
text(
|
||||
'SELECT id, title, content FROM compliance.compliance_legal_templates '
|
||||
'SELECT id, title, content FROM public.compliance_legal_templates '
|
||||
'WHERE document_type = :doc_type AND language = :lang'
|
||||
),
|
||||
{'doc_type': doc_type, 'lang': lang}
|
||||
@@ -133,7 +133,7 @@ def main() -> None:
|
||||
|
||||
conn.execute(
|
||||
text(
|
||||
'UPDATE compliance.compliance_legal_templates '
|
||||
'UPDATE public.compliance_legal_templates '
|
||||
'SET content = :content, updated_at = NOW() '
|
||||
'WHERE id = :id'
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user