diff --git a/.gitignore b/.gitignore index 7e88892..2c285a1 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ Definitions/ build/pack/lib build/*.nupkg .vs/ +tmp/ diff --git a/tmp/pack/dbup-sqlserver-scripting.nuspec b/tmp/pack/dbup-sqlserver-scripting.nuspec deleted file mode 100644 index 2c4dcf8..0000000 --- a/tmp/pack/dbup-sqlserver-scripting.nuspec +++ /dev/null @@ -1,23 +0,0 @@ - - - - dbup-sqlserver-scripting - $version$ - DbUp SQL Server Object Scripting - Brady Holt - Brady Holt - https://raw.github.com/bradyholt/dbup-sqlserver-scripting/master/LICENSE - https://github.com/bradyholt/dbup-sqlserver-scripting - https://raw.github.com/DbUp/DbUp/master/src/Information/dbup-icon.png - false - Extends DbUp to provide SQL Server object definition scripting when running migrations from Visual Studio. When a database object changes during a migration, its definition will be saved in the project. - $notes$ - $copyright$ - dbup database migrations sqlserver scripting definitions scripts console - - - - - - - diff --git a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll b/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll deleted file mode 100644 index fa69691..0000000 Binary files a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll and /dev/null differ diff --git a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll.config b/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll.config deleted file mode 100644 index 15bc4c6..0000000 --- a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.dll.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.pdb b/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.pdb deleted file mode 100644 index 96627ed..0000000 Binary files a/tmp/pack/lib/net35/DbUp.Support.SqlServer.Scripting.pdb and /dev/null differ diff --git a/tmp/pack/tools/dbup-sqlserver-scripting.psm1 b/tmp/pack/tools/dbup-sqlserver-scripting.psm1 deleted file mode 100644 index 88e1cb2..0000000 --- a/tmp/pack/tools/dbup-sqlserver-scripting.psm1 +++ /dev/null @@ -1,52 +0,0 @@ -<# Package Manager Console scripts to support DbUp #> - -function Start-DatabaseScript { - $project = Get-Project - Write-Host "Building..." - $dte.Solution.SolutionBuild.BuildProject("Debug", $project.FullName, $true) - $projectDirectory = Split-Path $project.FullName - $projectExe = $projectDirectory + "\bin\Debug\" + $project.Name + ".exe" - $args = " --scriptAllDefinitions" - - & $projectExe $args - } - - -function New-InitialScript { - - $project = get-project - $projectDirectory = Split-Path $project.FullName - #wrap in a job so type isn't locked - $job = Start-Job -ScriptBlock { - $basePath = $args[0] - $binDirectory = "$basePath\bin\debug" - try{ - Add-Type -Path "$binDirectory\DbUp.dll" - Add-Type -Path "$binDirectory\DbUp.Support.SqlServer.Scripting.dll" - } - catch - { - Write-Host -foreground yellow "LoadException"; - $Error | format-list -force - Write-Host -foreground red $Error[0].Exception.LoaderExceptions; - } - - $scriptProvider = new-object DbUp.Support.SqlServer.Scripting.DefinitionScriptProvider -ArgumentList "$basePath\Definitions" - $scriptProvider.GetScriptContent() - } -ArgumentList $projectDirectory - Wait-Job $job - - #create scripts folder if it doesn't exist - $scripts = $project.ProjectItems | ?{ $_.Name.Equals("Scripts") } - if($scripts -eq $null){ - $project.ProjectItems.AddFolder("Scripts") - } - #Create the new script by calling the lib - $initialScriptPath = "$projectDirectory\Scripts\001-initial.sql" - Receive-Job $job | New-Item $initialScriptPath -Force -ErrorAction Ignore -ItemType file - - #add to project - $addedItem = $project.ProjectItems.Item("Scripts").ProjectItems.AddFromFileCopy($initialScriptPath) - #update to embedded resource - $addedItem.Properties.Item("BuildAction").Value = 3 -} \ No newline at end of file diff --git a/tmp/pack/tools/init.ps1 b/tmp/pack/tools/init.ps1 deleted file mode 100644 index 252d5dc..0000000 --- a/tmp/pack/tools/init.ps1 +++ /dev/null @@ -1,3 +0,0 @@ -param($installPath, $toolsPath, $package, $project) - -Import-Module (Join-Path $toolsPath dbup-sqlserver-scripting.psm1) \ No newline at end of file