You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: adjust generation to resolve issues with MTX (#325)
Related to #321
- Add per-tenant `cds.xt.DeploymentService.after('deploy')` hook so
artifacts are deployed against the freshly created tenant schema
(skipping the `t0` metadata tenant)
- The changes for SQLite and Postgres ensures that the plugins doesn't
crash for multitenant-applications; however it solves symptoms that
occurs because the triggers are generated during the on served event
(SQLite -> `cds.compile.to.sql` runs in parallel and lead to the issue
that triggers were registered before the table exist)
- Only emit `Changes_CT_INDEX` / `Changes_CT_parent_INDEX` `.hdbindex`
artifacts when the Changes table is in the compiled model (fixes
`requires db://SAP_CHANGELOG_CHANGES … not provided by any file` HDI
deploy errors)
- Make `enhanceModel` work on `xtended` runtime CSNs (extensibility
upgrades)
- Invoke `enhanceModel` inside `cds.compiler.to.hdi.migration` and on
`cds.xt.ModelProviderService.{getCsn, getExtCsn}` so HANA HDI builds and
MPS consumers always see ChangeView (fixes `invalid column name
CHANGEVIEW_0.PARENT_ENTITYKEY` on upgrades)
- Skip `ensureUndeployJsonHasTriggerPattern()` in MTX (no local
`undeploy.json` to maintain)
- Add new mtx tests in `tests/mtx/mtx.test.js`
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
4
4
This project adheres to [Semantic Versioning](http://semver.org/).
5
5
The format is based on [Keep a Changelog](http://keepachangelog.com/).
6
6
7
+
## Version 2.1.0 - 2026-07-28
8
+
9
+
### Fixed
10
+
- Prevent SQLite sidecar crash on startup in multi-tenant applications due to trigger/index deployment running before tenant tables exist
11
+
- Invoke `enhanceModel` in after-deploy handler of `cds.xt.DeploymentService` because the `loaded` handler is not invoked on the tenant CSN from `ModelProviderService.getCsn()`
12
+
- Fix HDI deployment failure (sap.changelog.Changes_CT_INDEX.hdbindex requires db://SAP_CHANGELOG_CHANGES which is not provided by any file) caused by adding `.hdbindex` artifacts even when Changes table does not exist in the compiled model
13
+
- HDI deployment failure (`invalid column name: CHANGEVIEW_0.PARENT_ENTITYKEY`) during extensibility upgrades since `enhanceModel` was not called on the tenant CSN before HANA compilation
14
+
- Support model enhancement with `xtended` CSN flavor to support extensibility and feature toggle setups
0 commit comments