I am trying to update a project where a deployment script is dependent on
Security package version
IsInitalScreen database field was introduced).
Anyway the whole Security deployment is performed until version 5.4 so all my scripts which did not include this field fail.
This was exactly the reason to introduce package version dependencies on the deployment scripts, so deployments would be ordered in the way they were introduced in between package version switches.
This script even when dependent on Security 5.3.1 is executed after Security is updated to 5.3.2.
What happens when:
- We use a typical root model (root, security, menu)
- Audit package (also a part of our root model distribution) is NOT used at the moment, so no scripts are being executed
- Later on the developer decides to include the Audit package
Now all the Audit scripts will have to run but they are dependent on different versions of Root model, as it was developed.
Will it run?
This was discusewd on the weekly meating. If the Architect detects the situation when there is a new package in the model it will offer the user an option to run the deployment scripts of this package without any dependency checks. If the deploymnet scripts fail, the user will have to figure out where the problem is an tweak the scripts.
Note: This should only be a problem for the developer in Architect right after adding a package because old scripts already ran. It would not be a problem when creating a new database as the scripts would run in the correct order. The solution is to “try” to run the scripts without dependency checks (but they may fail as some old scripts could depend on database structures that no longer exist). If this does not work, the best would be to just create a database from scratch or to fix the scripts in the way that they would run well.