Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ jobs:
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ vars.DOCKERHUB_USERNAME }}/sqlschemacompare
images: |
${{ vars.DOCKERHUB_USERNAME }}/sqlschemacompare
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
- name: Login to Docker Hub
Expand All @@ -249,13 +251,23 @@ jobs:
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
file: ./SQLSchemaCompare.CLI/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name == 'push' }}
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Product>SQL Schema Compare</Product>
<Description>https://github.com/TiCodeX/SQLSchemaCompare</Description>
<Authors>TiCodeX</Authors>
<Version>2026.3.1</Version>
<Version>2026.5.1</Version>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
4 changes: 2 additions & 2 deletions SQLSchemaCompare.CLI/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
"Microsoft.EntityFrameworkCore.SqlServer": "[10.0.7, )",
"Microting.EntityFrameworkCore.MySql": "[10.0.7, )",
"Npgsql.EntityFrameworkCore.PostgreSQL": "[10.0.1, )",
"TiCodeX.SQLSchemaCompare.Services": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Services": "[2026.5.1, )"
}
},
"TiCodeX.SQLSchemaCompare.Services": {
Expand All @@ -424,7 +424,7 @@
"Microsoft.AspNet.WebApi.Client": "[6.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[10.0.7, )",
"Newtonsoft.Json": "[13.0.4, )",
"TiCodeX.SQLSchemaCompare.Core": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Core": "[2026.5.1, )"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion SQLSchemaCompare.Infrastructure/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"Microsoft.AspNet.WebApi.Client": "[6.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[10.0.7, )",
"Newtonsoft.Json": "[13.0.4, )",
"TiCodeX.SQLSchemaCompare.Core": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Core": "[2026.5.1, )"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions SQLSchemaCompare.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@
"Microsoft.EntityFrameworkCore.SqlServer": "[10.0.7, )",
"Microting.EntityFrameworkCore.MySql": "[10.0.7, )",
"Npgsql.EntityFrameworkCore.PostgreSQL": "[10.0.1, )",
"TiCodeX.SQLSchemaCompare.Services": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Services": "[2026.5.1, )"
}
},
"TiCodeX.SQLSchemaCompare.Services": {
Expand All @@ -794,7 +794,7 @@
"Microsoft.AspNet.WebApi.Client": "[6.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[10.0.7, )",
"Newtonsoft.Json": "[13.0.4, )",
"TiCodeX.SQLSchemaCompare.Core": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Core": "[2026.5.1, )"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions SQLSchemaCompare.UI/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,15 @@
"Microsoft.EntityFrameworkCore.SqlServer": "[10.0.7, )",
"Microting.EntityFrameworkCore.MySql": "[10.0.7, )",
"Npgsql.EntityFrameworkCore.PostgreSQL": "[10.0.1, )",
"TiCodeX.SQLSchemaCompare.Services": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Services": "[2026.5.1, )"
}
},
"TiCodeX.SQLSchemaCompare.Services": {
"type": "Project",
"dependencies": {
"Microsoft.AspNet.WebApi.Client": "[6.0.0, )",
"Newtonsoft.Json": "[13.0.4, )",
"TiCodeX.SQLSchemaCompare.Core": "[2026.3.1, )"
"TiCodeX.SQLSchemaCompare.Core": "[2026.5.1, )"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion SQLSchemaCompare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqlschemacompare",
"version": "2026.3.1",
"version": "2026.5.1",
"license": "GPL-3.0-only",
"description": "The Swiss Army Knife of Database Schema Comparison for Microsoft SQL, mySQL and PostgreSQL which runs on Windows, Linux and macOS systems.",
"main": "app.js",
Expand Down
23 changes: 22 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
command:
- |
set -e
expected=$(printf "ALTER TABLE [business].[staff] ADD [last_name] [varchar](45) NOT NULL\nGO")

projectFile=$(mktemp)
{
echo '<?xml version="1.0" encoding="utf-8"?>'
Expand All @@ -69,7 +71,6 @@ services:
/app/TiCodeX.SQLSchemaCompare.CLI -p $$projectFile -o $$outputFile

output=$(cat $$outputFile)
expected=$(printf "ALTER TABLE [business].[staff] ADD [last_name] [varchar](45) NOT NULL\nGO")

if [ "$$output" != "$$expected" ]; then
echo "Output does not match expected"
Expand All @@ -79,3 +80,23 @@ services:
printf "%s" "$$output" | hexdump -C
exit 1
fi

outputFile=$(mktemp)

/app/TiCodeX.SQLSchemaCompare.CLI \
--type MicrosoftSql \
--source 'Server=mssql;Database=sakila_source;User ID=sa;Password=Test1234!;TrustServerCertificate=True;' \
--target 'Server=mssql;Database=sakila_target;User ID=sa;Password=Test1234!;TrustServerCertificate=True;' \
-o $$outputFile

output=$(cat $$outputFile)

if [ "$$output" != "$$expected" ]; then
echo "Output does not match expected"
echo "Expected:"
printf "%s" "$$expected" | hexdump -C
echo "Actual:"
printf "%s" "$$output" | hexdump -C
exit 1
fi

Loading