Skip to content

Commit

Permalink
Merge pull request #180 from folio-org/MODINVOSTO-172
Browse files Browse the repository at this point in the history
MODINVOSTO-172 Cannot search for voucher by number after editing voucher number
  • Loading branch information
yuntianhu authored Apr 22, 2024
2 parents b410bc8 + c859bac commit 11201d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
UPDATE ${myuniversity}_${mymodule}.invoices AS i
SET jsonb = i.jsonb || jsonb_build_object('voucherNumber', v.jsonb ->> 'voucherNumber')
FROM ${myuniversity}_${mymodule}.vouchers AS v
WHERE i.id = v.invoiceId;
5 changes: 5 additions & 0 deletions src/main/resources/templates/db_scripts/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
"run": "after",
"snippetPath": "data-migration/5.8.0/update_invoices_fiscal_year_id.sql",
"fromModuleVersion": "mod-invoice-storage-5.8.0"
},
{
"run": "after",
"snippetPath": "data-migration/5.9.0/update_voucherNumber_in_voucher_invoice.sql",
"fromModuleVersion": "mod-invoice-storage-5.9.0"
}
],
"tables": [
Expand Down

0 comments on commit 11201d5

Please sign in to comment.