Skip to content

Commit

Permalink
Merge branch 'release/1.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Aug 24, 2023
2 parents 71d0558 + 7e6f587 commit 252b527
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.6.0] - 2023-08-24

### Changed

- Added verbose output to import dacpac and install dacpac.

## [1.5.0] - 2023-05-31

### Changed
Expand Down
6 changes: 5 additions & 1 deletion src/PsDac/ImportPackageCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ protected override void AsyncProcessRecord()
switch (ParameterSetName)
{
case PARAMETERSET_DATABASE:
using (MemoryStream packageStream = new()) {
using (MemoryStream packageStream = new())
{

WriteVerbose($"Import dacpac from database [{DatabaseName}].");
Service.Extract(
packageStream: packageStream,
databaseName: DatabaseName,
Expand All @@ -91,6 +94,7 @@ protected override void AsyncProcessRecord()
throw new ArgumentException($"Path does not exist.", Path.FullName);
}

WriteVerbose($"Import dacpac from file '{Path.FullName}'.");
package = DacPackage.Load(
fileName: Path.FullName,
modelStorageType: DacSchemaModelStorageType.Memory,
Expand Down
1 change: 1 addition & 0 deletions src/PsDac/InstallPackageCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ protected override void BeginProcessing()

protected override void AsyncProcessRecord()
{
WriteVerbose($"Install dacpac '{Package.Name}' v{Package.Version} to [{DatabaseName}]");
Service.Deploy(package: Package, targetDatabaseName: DatabaseName, upgradeExisting: UpgradeExisting.IsPresent, options: DeployOptions);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/PsDac/PsDac.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PsDac.psm1'

# Version number of this module.
ModuleVersion = '1.5.0'
ModuleVersion = '1.6.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down

0 comments on commit 252b527

Please sign in to comment.