I'm trying to reduce the amount of deployment packages necessary to be executed.
Currently we're developing with several branches, resulting in a lot of project versions. We don't want to deploy each version to the customer (i.e. the changes are to minor), but only when we think it's needed.
Using the deployment package, a package can be created. Unfortunately this creates an upgrade script based on the previous version, and not on an earlier version. In other words, we've created V1.00, V1.10 and V1.20. We want to skip V1.10, but it does contain database-updates that are necessary.
How can I create a deployment package in the Software Factory creating a package that allows upgrading from V1.00 to V1.20 including the V1.10 update?
In the documentation of the manifest file it looks like it could be there ( https://office.thinkwisesoftware.com/docs/docs/deployment/deployer.html#manifest). And as I can see it's used in the SF and IAM. By having multiple "supportedVersions" values in the manifest.json.
When I've generated a deployment package for “1.20” this is what I get:
{
"schema": 2,
"products": s
{
"type": "Application",
"projectId": "SANDBOX",
"version": "1.20",
"metaVersion": "2019.2",
"projectFolder": "",
"dependencies": s
"CompatibilityLevel110"
],
"packages": s
{
"type": "Install",
"path": "Install",
"defaultDatabaseName": "SANDBOX"
},
{
"type": "Upgrade",
"path": "Upgrade",
"supportedVersions": s
{
"version": "1.10",
"upgradesTo": "1.20",
"files": s
"1.20\\020_Upgrade.sql",
"1.20\\040_Constraints.sql",
"1.20\\050_Indexes.sql"
]
}
]
}
]
}
]
}
But what I want is the same file, but the following line
"version": "1.10",
"upgradesTo": "1.20",
changed (and the update scripts adjusted) to:
"version": "1.00",
"upgradesTo": "1.20",
or
"supportedVersions": s
{
"version": "1.00",
"upgradesTo": "1.10",
"files": s
"1.10\\020_Upgrade.sql"
]
},
{
"version": "1.10",
"upgradesTo": "1.20",
"files": s
"1.20\\020_Upgrade.sql",
"1.20\\040_Constraints.sql",
"1.20\\050_Indexes.sql"
]
}
]
So the questions are:
-
Can I generate via the SF multiple "supportedVersions"?
or
-
Can I have 1 supportedVersions with "version" 1.00 to "upgradesTo" 1.20 via the SF?
Off course, this could be done manually, but if it could be done via the SF that would be better.