Red Gate forums :: View topic - Pre deployment script
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Pre deployment script

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
senthildekumar



Joined: 30 Jul 2014
Posts: 4

PostPosted: Wed Jul 30, 2014 12:22 pm    Post subject: Pre deployment script Reply with quote

Hi All
There are some scripts that I want to execute manually before the Deployment manager performs a schema compare. For instance there could be some large index rebuilds that needed to be performed which takes a long time to complete. Will it be possible for me to specify them as part of pre-deployment so that the deployment manager executes these scripts and then perform the schema compare and deploy the rest of the changes.
_________________
Regards
Senthil
Back to top
View user's profile Send private message
chirayu



Joined: 17 Sep 2012
Posts: 65

PostPosted: Tue Aug 05, 2014 3:17 pm    Post subject: Reply with quote

Hi

Sorry for the delay in getting back to you.

You can run custom PowerShell scripts before, during and after deployments. Basically you need to add PowerShell scripts to your NuGet package with certain names. Deployment Manager then calls the script as part of a deployment.

To find out more about this: http://documentation.red-gate.com/display/DM2/Using+PowerShell+scripts+in+deployment

Does this solve your problem?

Chirayu
_________________
Chirayu Shishodiya
Software Engineer - Deployment Manager
Red Gate
Back to top
View user's profile Send private message
senthildekumar



Joined: 30 Jul 2014
Posts: 4

PostPosted: Wed Aug 06, 2014 2:11 pm    Post subject: Reply with quote

Thanks for the response Chirayu..

To confirm if I have made some scripts that creates indexes and add it as part of powershell scripts that are to be executed before deployment then that will be ignored when Deployment Manager creates its own script for deployment meaning the index I had added will not be part of the script that is generated by deployment manager..
_________________
Regards
Senthil
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group