Skip to content

Commit

Permalink
Merge pull request #424 from SkillsFundingAgency/DPP-1052_Fix_Prod_Db…
Browse files Browse the repository at this point in the history
…_Release_Provider_Mergers

Adds pre-deployment script to remove old procs left hanging around
  • Loading branch information
satya-sanikommu authored Nov 9, 2018
2 parents 4d0da96 + 9a01f5d commit 493340f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
Pre-Deployment Script Template
--------------------------------------------------------------------------------------
This file contains SQL statements that will be executed before the build script.
Use SQLCMD syntax to include a file in the pre-deployment script.
Example: :r .\myfile.sql
Use SQLCMD syntax to reference a variable in the pre-deployment script.
Example: :setvar TableName MyTable
SELECT * FROM [$(TableName)]
--------------------------------------------------------------------------------------
*/

DROP PROCEDURE IF EXISTS [dbo].[BulkUploadApprenticships]
DROP PROCEDURE IF EXISTS [dbo].[GetActiveApprenticeships]

Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<Folder Include="AdhocScripts" />
<Folder Include="AdhocScripts\Support" />
<Folder Include="AdhocScripts\Support\DPP-1661" />
<Folder Include="PreDeployment" />
</ItemGroup>
<ItemGroup>
<Build Include="Tables\Commitment.sql" />
Expand Down Expand Up @@ -146,4 +147,7 @@
<ItemGroup>
<PostDeploy Include="PostDeployment\PostDeploymentScript.sql" />
</ItemGroup>
<ItemGroup>
<PreDeploy Include="PreDeployment\PreDeploymentScript.sql" />
</ItemGroup>
</Project>

0 comments on commit 493340f

Please sign in to comment.