Skip to content

Commit 15ace95

Browse files
authored
Merge pull request #158 from dataplat/development
v0.9.1
2 parents 1c56597 + 601d8f0 commit 15ace95

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Currently supported RDBMS:
1616
* PostgreSQL
1717
* MySQL
1818

19+
In addition it also supports Azure Synapse Analytics SQL Pools (both dedicated and serverless). Be aware that you cannot use the schemaversion table with the serverless SQL Pool - it needs to be explicitly disabled by setting SchemaVersionTable to `$null`. All scripts deployed in such scenario should be idempotent and re-runnable.
20+
1921
## Features
2022

2123
The most notable features of the module:
@@ -183,4 +185,4 @@ Get-DBOPackageArtifact -Path myPackage.zip -Repository \\data\repo | Install-DBO
183185

184186
Submitting issues - [GitHub issues](https://github.com/dataplat/dbops/issues)
185187

186-
SQLCommunity Slack: https://sqlcommunity.slack.com #dbops or @nvarscar
188+
SQLCommunity Slack: https://sqlcommunity.slack.com #dbops or @nvarscar

bin/deploy.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Param (
44
[Alias('Server', 'SqlServer', 'DBServer', 'Instance')]
55
[string]$SqlInstance,
66
[string]$Database,
7-
[ValidateSet('SingleTransaction', 'TransactionPerScript', 'NoTransaction')]
7+
[ValidateSet('SingleTransaction', 'TransactionPerScript', 'NoTransaction', 'AlwaysRollback')]
88
[string]$DeploymentMethod = 'NoTransaction',
99
[int]$ConnectionTimeout,
1010
[int]$ExecutionTimeout,

dbops.psm1

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ Register-PSFConfigValidation -Name "transaction" -ScriptBlock {
3434
Message = ""
3535
}
3636
try {
37-
if (([string]$Value) -in @('SingleTransaction', 'TransactionPerScript', 'NoTransaction')) {
37+
if (([string]$Value) -in @('SingleTransaction', 'TransactionPerScript', 'NoTransaction', 'AlwaysRollback')) {
3838
$Result.Value = [string]$Value
3939
}
4040
else {
41-
$Result.Message = "Allowed values: SingleTransaction, TransactionPerScript, NoTransaction"
41+
$Result.Message = "Allowed values: SingleTransaction, TransactionPerScript, NoTransaction, AlwaysRollback"
4242
$Result.Success = $False
4343
}
4444
}
@@ -174,7 +174,7 @@ Set-PSFConfig -FullName dbops.ApplicationName -Value "dbops" -Initialize -Descri
174174
Set-PSFConfig -FullName dbops.SqlInstance -Value "localhost" -Initialize -Description "Server to connect to"
175175
Set-PSFConfig -FullName dbops.Database -Value $null -Initialize -Description "Name of the database for deployment"
176176
Set-PSFConfig -FullName dbops.DeploymentMethod -Value 'NoTransaction' -Initialize -Validation transaction `
177-
-Description "Transactional behavior during deployment. Allowed values: SingleTransaction, TransactionPerScript, NoTransaction (default)"
177+
-Description "Transactional behavior during deployment. Allowed values: SingleTransaction, TransactionPerScript, AlwaysRollback, NoTransaction (default)"
178178
Set-PSFConfig -FullName dbops.Username -Value $null -Initialize -Description "Connection username"
179179
Set-PSFConfig -FullName dbops.Password -Value $null -Initialize -Validation securestring `
180180
-Description "Connection password. Only available to the same OS user, as it will be encrypted"

docs/changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Release notes for v0.9.1:
2+
- ### Update README.md (#156) by @kevchant
3+
- ### adding AlwaysRollback to deploy.ps1 and module configuration (#157) by @nvarscar
14
# Release notes for v0.9.0:
25
- ### Pester 5 and redesigned test structure (#152) by @nvarscar
36
- ### Adding AlwaysRollback deployment method (#154) by @nvarscar

0 commit comments

Comments
 (0)