Skip to content

Commit

Permalink
Fixed bug with determening if a database backup is full and not copy …
Browse files Browse the repository at this point in the history
…only.
  • Loading branch information
rogerfar committed Nov 7, 2023
1 parent 32dabaf commit 902bc53
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.17] - 2023-11-07
### Changed
- Fixed bug with determening if a database backup is full and not copy only.

## [1.0.16] - 2023-11-07
### Changed
- Filter out database that do not have a FULL database when trying to create a LOG or DIFF backup.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datack",
"version": "1.0.16",
"version": "1.0.17",
"description": "Simple database backup tool.",
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Datack.Agent.Service/Datack.Agent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>11</LangVersion>
<OutputType>Exe</OutputType>
<Version>1.0.16</Version>
<Version>1.0.17</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task<IList<Database>> GetDatabaseList(String connectionString, Canc
database_id AS 'DatabaseId',
name AS 'DatabaseName',
HAS_PERMS_BY_NAME(name, 'DATABASE', 'BACKUP DATABASE') AS 'HasAccess',
(SELECT IIF(COUNT(*) = 0, 0, 1) FROM msdb.dbo.backupset WHERE type = 'D' AND database_name = sys.databases.name) AS 'HasFullbackup'
(SELECT IIF(COUNT(*) = 0, 0, 1) FROM msdb.dbo.backupset WHERE type = 'D' AND database_name = sys.databases.name AND is_copy_only = 0) AS 'HasFullbackup'
FROM
sys.databases");

Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/Datack.Web.Web/Datack.Web.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>11</LangVersion>
<Version>1.0.16</Version>
<Version>1.0.17</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/react/src/pages/settings/SettingsOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const SettingsOverview: FC = () => {
<Heading size="md">Server Logging</Heading>
</Box>
<Box marginBottom={4}>
Server version <span id="version">1.0.16</span>
Server version <span id="version">1.0.17</span>
</Box>
<Box marginBottom={4}>
<SettingsSetting
Expand Down

0 comments on commit 902bc53

Please sign in to comment.