Separate Scripts for each object in deployment scripts
DenisJCilliers
Posts: 24 New member
Is it possible to generate separate scripts for each object for deployment, as the generate script creates one large script with all the changes in one file.
Tagged:
Best Answers
-
Peter_Laws Posts: 289 Silver 2Ah excuse me, I took your message to mean you wanted to capture the objects not deploy them.
Natively no but it is possible to iterate through, there's a sample pipeline that demonstrates this available here https://github.com/red-gate/Flyway-Sample-Pipelines/blob/main/CLI-autocapture-autoscript/automated-capture-migration-per-object.ps1 -
DenisJCilliers Posts: 24 New memberNice Script
That is a very interesting script, and a clever way to create migrations, I might just look at doing the same thing just with the deployment scripts.
--i-agree-to-the-eula
I understand that the marketing guys have an issue with the eula, but they really need to chill and not ask us to keep putting --i-agree-to-the-eula in very command line. , Take it as stated that if we are using the product we agree to the terms - as this is 5x in one short script
Answers
After a fashion yes. If instead of deploying to a db, you deploy to a scripts folder, multiple scripts will be generated, one for each db object.
For more details, please see here.