grate

erikbra·erikbra.grate

grate - sql for the 20s

winget install --id erikbra.grate --exact --source winget

Latest 2.3.0·November 10, 2026

Release Notes

grate 2.3.0 adds database-specific distributions alongside the all-in-one package, CI-aware migration logging with activity groups and progress, interactive terminal progress, SQL Server restore file relocation, and SQL Server script diagnostics, alongside migration correctness fixes and improvements to documentation and release tooling.

New features

• Improve migration logging with native CI groups, progress and warning/error annotations, plus live progress in capable interactive terminals. The format is detected automatically or selected with --log-format. #904, #934, closes #903. • Add database-specific packages for SQLite, SQL Server, MariaDB, PostgreSQL and Oracle alongside the all-in-one package, across CLI archives, .NET tools, Docker and native package formats. Each variant defaults to its selected database. #910. • Relocate SQL Server backup files during restore with repeatable --restore-move 'logical-name=destination-path' options. Library consumers can use RestoreFileMove, GrateConfiguration.RestoreMoves and WithRestoreMoves(...). Validate mappings before migration, quote restore inputs correctly, and attempt to restore MULTI_USER access after a restore failure while retaining the original exception. Existing restore calls remain supported. #908, closes #593. • Include SQL Server PRINT and other informational script messages at Debug/Trace verbosity, with the script name. Default Information output is unchanged; SQL errors still fail migrations. #907, closes #594.

Database-specific distributions

Choose a package containing the provider you need, or keep the existing all-in-one package. Every variant exposes the same grate command. A database-specific build defaults to its selected database and rejects unsupported provider selections before migration starts. The all-in-one package keeps SQL Server as its default. #910, related to #909.

Distribution .NET tool ID / release file prefix Default database
All grate SQL Server
SQLite grate-sqlite SQLite
SQL Server grate-sqlserver SQL Server
MariaDB grate-mariadb MariaDB
PostgreSQL grate-postgresql PostgreSQL
Oracle grate-oracle Oracle

• Each distribution has self-contained ZIPs for the existing nine platform/architecture combinations, Windows x64/Arm64 MSI installers, and Debian amd64/arm64 packages. Packaging now produces 54 ZIPs, 12 MSIs and 12 Debian packages, plus checksums and a release manifest. • Six framework-dependent .NET tools retain net8.0/net9.0/net10.0/net11.0 assets. The six existing dotted-name library packages, such as grate.sqlite and grate.sqlserver, remain separate from the hyphenated CLI tools. • Docker adds gratedevs/grate:sqlite-2.3.0, :sqlserver-2.3.0, :mariadb-2.3.0, :postgresql-2.3.0 and :oracle-2.3.0, each for linux/amd64 and linux/arm64. Stable profile aliases use :sqlite, :sqlserver, :mariadb, :postgresql and :oracle. Existing all-in-one version/latest tags and the digest-identical erikbra/grate compatibility copy retain their behavior; no profile tags are added to the compatibility repository. • Stable release tooling updates six casks in the existing erikbra/cask tap and prepares six WinGet identity candidates, six Chocolatey x64 packages and six Homebrew source-formula candidates. WinGet/Chocolatey submission and acceptance, and source-formula channel placement, remain separate. New identities become installable only after their release/publication or acceptance steps complete.

See the distribution guide and complete distribution catalog for filenames, channels and platform coverage.

Fixes

• Report transaction commit failures as migration failures rather than success. Log the underlying cause and attempt to record version status Error after disposing the transaction. Includes a real PostgreSQL deferred-constraint regression. #899, closes #647. • Use default database creation when a configured custom creation folder contains no SQL files, preserving creation-dependent follow-up scripts and dry-run behavior. #897, closes #532. • Reject missing explicitly configured CLI migration directories before starting migration. Report the folder key/path and exit with code 1, including for configuration-file mappings. Standard folders without explicit path overrides remain optional. #898, closes #292. • Create bootstrap temporary directories directly, avoiding temporary-file conversion and deletion of an existing directory. This addresses a failure observed while preparing bootstrap scripts on Windows. #934.

Dependencies and contributor tooling

• Move source builds to stable .NET SDK 11.0.100. Self-contained CLI archives, MSI/Debian installers and all six Alpine 3.24 Docker profiles bundle stable .NET runtime 11.0.0. Framework-dependent tools and libraries retain net8.0/net9.0/net10.0/net11.0 assets and use the matching installed runtime. #943.

• Update System.Security.Cryptography.Pkcs to 10.0.14 across all four target frameworks. Refresh standalone .NET 10 examples and their dependencies, and retry transient pinned WiX downloads without weakening checksum checks. #926. • Replace grate.sln with grate.slnx, preserve solution/filter membership and build mappings, consolidate NuGet configuration, audit direct/transitive dependencies at all severities, and enable package pruning. #928. • Convert repository automation to PowerShell and retain the small runtime shell launchers. #917. • Validate complete PR CI evidence, stage expensive checks behind build/isolated tests, and run shared build-independent checks before compilation. Main protection remains a separate proposal. #913, #922, #927. • Normalize C# whitespace/encoding and add a shared changed-file formatting check; configure advisory CodeRabbit reviews; update CodeQL Action to 4.39.3. #923, #912, #902, #936. • Retry macOS Arm64 SDK installation once in fresh installation and temporary directories, validate the selected SDK and Arm64 host, and fail if recovery does not succeed. This prevents a partial installation from being accepted by the retry. #933. • Refresh CodeQL on main pushes and a weekly schedule. Add read-only PR dependency review and a resolved direct/transitive NuGet audit, rejecting high/critical findings and audit-feed failures. These workflow changes do not activate repository rulesets or required-check settings. #911. • Bound Windows MSI lifecycle verification waits and retain process/progress evidence on failure. Organize GitHub Actions display names by purpose, update docker/login-action to 4.8.0, and update the xUnit MTP package to 4.0.3. #934, #935, #937. • Split CI and release orchestration into reusable phase workflows. Expand matching CLI/tool, native installer and database-version checks across the all-in-one and database-specific builds, and maintain a generated distribution catalog checked during preflight. #910.

Documentation and examples

• Clarify migration folder defaults/order, script policies, database setup and safe migration workflows in the bundled use-grate skill. #896, #895. • Clarify that --output stores migration artifacts; capture console logs by redirecting stdout/stderr. #906. • Document provider connection strings and add a runnable PostgreSQL Compose example. Refresh the README, SQLite quick start and contributor guidance. #905, #929. • Document Chocolatey packaging/moderation, WinGet community submission, and the expanded distribution catalog. Release tooling retains package candidates; public-feed submission and acceptance remain separate. #900, #901, #910.

Upgrade notes

• All CLI variants install command grate. Uninstall the installe

Installer types: zip, wix

x86—zip062AA2DF240AFEE545F056BBFAF777F7078B6ED6B0A08070D928EFBE66CF0328
x64—zip81CC739F570472D45ECE4E9A6E4ECD9E79F72F63EC7689E480F6DBD2D2682A39
arm64—zip2D1FD8A8D3AA3499A2A73A659D663BFDD83079D55221ED880D064D9AD0149314
x64userwixB5FF0B48779B0EF37CDC9F687B6E5C1E29167BB66F4A804232692680704928C8
arm64userwixAC8EE57EF064D215EE1A5F61C79E3E1D93C9B6D1F79839003BC0B1D4DA63C0F1

Details

Homepage
https://github.com/grate-devs/grate
License
MIT
Publisher
erikbra
Support
https://github.com/grate-devs/grate/issues

Older versions (26)

2.2.0
x86—zip0A1ED6C200E75075AB096DB336AE89603B8E3BA00CFB5FED936C33CC067DF988
x64—zip66AE15E3DBD705DC2B7A2A4B6C92B294C309BB360526722EAEA85858144A2476
arm64—zip21C967852804E35269E371C122D46B9AB5977F025F87FF75DA22941D8892133F
x64userwixF722B3F9B543F2CFC348618E9EC624973A26DB55141EFD0F4F387C6A52FD246B
arm64userwix6B1EEABA3DFFA2FA8076D79DAEA6124BEE60B3622054FEEF21E61FBC28C37D09
2.0.0
x86—zipA1DDA2ACFF6C6BB970346B7790F283E6F5DCB1263681E60C15F16B080D928C6F
x64—zipC1F2D4A3834D5A7CAEA1896FE53C64D8FBEE67B8BCE64FE7FCB037858DA2E93B
arm64—zip4AD04AD66795665D767CE893A70AC1F0C3C302A6B02F0A2279EAD40344EC4695
x64userwixBD70EB04EAC3795CAA4E39DD3C6928679C5F8AE75B12A64BB5B8BB0162B66A94
arm64userwixB0E1697388EC4B1A779F0A16BBC55B3FA6F08AE1A3895E35985AD0CBCC722320
1.8.0
x64—1B502FB9D01F1D4E26F039103833D20E3D4C81E9D42406EB7672F751F0593285
1.7.4
x64—A2E89D474AFA3221ADA395C87D5C46E145287104DE65B37B4A77D25461ADEFEA
1.7.3
x64—000C176D42F35FB2090724B1C5B75BD03DD71A22E5B711FD12D8095E353BAE12
1.7.2
x64—27DCB0D51E080010C9CF3A08206C6A2EF26A2076F0D32F6A2A795E7F2FA4310B
1.7.1
x64—78A7E82012F67C8DB5F62DC5CC746D9345CFC609D04E323FDDFEF2968671699A
1.7.0
x64—7F641F7D98FA99AD6A1BF89B81092572E64B5C4E4CED6830638DD41F6443A9D3
1.6.3
x64—29349F8FCD82B134BEDE3561C7B2D102278B72253ED5945547E1294DB004FBF7
1.6.2
x64—210F23A737A40690C79D580B9923E2C232BCDA469923F41F470FF84A0148C207
1.6.1
x64—256F0C187B16E85997C646B6D151711A741FE2FBCED0F41053E076C206DD2AEE
1.6.0
x64—8AA175C8938A8E42CCB2FDEFA36A687C040837449617DC5C9E118251AA64D589
1.5.3
x64—ACE4F882D551F45E866A099EFF4B518AC6C9026B0B2DEE45FE8A38931E964B39
1.5.2
x64—95BC544840D57462103A305E49CD517A77B5F150746F785B5EE3D21EB8626671
1.5.1
x64—6A186EDF428AF2B1438A1D473E5ECE868766DA6BAE399B7C2639BF70E2D03FD9
1.5.0
x64—D5B44EAF0F8270F67452A18B8FF060158F1BBFE3B7171EA314A48103C888E906
1.4.0
x64—BE5E216A451FD4BFE1E9975A4A0925B786A98F3E34CFE044384629E4C993B4BD
1.2.0
x64—EF43B5468670BC2C58614BF451CCC4F7D08E1A0727AC91BAEA573568750F9932
1.1.0
x64—0BC98D32C78E11899E54F36D192B0A67A127F5C96F4F2ACCAB03BD24DF0401B5
1.0.0
x64—1E3A6A3106DB1DBF21662155AA0C0C604791F34B54F97A78E79019089F7FC028
0.11.0
x64—C1C4626D1DD9AAC4F477A6DF3D00846DCDD7F3FE0995582B52B2F529BEBC863C
0.10.1
x64—0AF08CC72730D8AB5929479BB37C16B9CF84B661850B949CA601DF5025CD1A71
0.10.0
x64—B3D26E111BE89BD23BEFB527BE6D26C71831223596CD6CD441B496B71FC4A585
0.9.6
x64—88FF79BB613AF142928A1FFA16B9044B50DACB704F38F194B511581765603727
0.9.5
x64—9C297BC4A8A83AD9A1935B47904C03CCBCD18FD6D6C15A0A4562ED31A8567BCC
0.9.4
x64—3CA445B7E71C84195B8E6DD466EAEAFC0A6D1807EBA28A8F8CB840811219955F