Database migrations (SQL bundles)
How Le Sage 13 (and Inpro 9, Aïda 6) upgrade their databases: bundles, adding a column, adding a function, testing locally, releasing a bundle and building the installer.
Adding a column (a table step)
This is what you used to do by adding a block to upgradedb.sql. Now it is a step file in ~/dev/im...
Adding or changing a function
Functions are no longer dropped and recreated at every launch. They live in functions/*.sql of a ...
Testing locally without releasing
You never need an installer or a release to try a change. There are two loops: the check script o...
Releasing a bundle and building the installer
"Releasing" a bundle version means freezing it: recording its checksum and git commit in released...
At launch: the connect rule and its messages
What Sage.exe does with the bundles at each launch (TDM.ApplyBundles → RunConnectRule in catBundl...