What are the challenges you face when working across database platforms? Take the survey
Options
Separate Scripts for each object in deployment scripts
![DenisJCilliers](https://us.v-cdn.net/6029854/uploads/defaultavatar/nZUSABQN8JEE0.jpg)
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
-
Options
Peter_Laws Posts: 237 Silver 2
Ah 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 -
Options
DenisJCilliers Posts: 23 New member
Nice 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.