@@ -819,14 +819,14 @@ jobs:
819819 - uses : actions/checkout@v4
820820
821821 # Pin to specific version (recommended for stability)
822- - uses : ayarotsky/diesel-guard@v0.2 .0
822+ - uses : ayarotsky/diesel-guard@v0.4 .0
823823 with :
824824 path : migrations/
825825` ` `
826826
827827**Versioning:**
828828- The action automatically installs the diesel-guard CLI version matching the tag
829- - ` @v0.2 .0` installs diesel-guard v0.2 .0
829+ - ` @v0.4 .0` installs diesel-guard v0.4 .0
830830- ` @main` installs the latest version
831831
832832**Alternatives:**
@@ -1093,32 +1093,35 @@ large_table_rows = 100000
10931093large_table_size_mb = 1024
10941094` ` `
10951095
1096- # ## Phase 3: Diesel Integration - All-in-One Migration Suite
1096+ # ## Phase 3: Framework Integration - All-in-One Migration Suite
10971097
1098- **Goal:** Integration with `diesel_migrations` to become the single tool for both safety checking and migration execution.
1098+ **Goal:** Integration with Diesel and SQLx migration ecosystems to become the single tool for both safety checking and migration execution.
10991099
11001100# ### Core Integration Features
11011101
1102- 1. **Native Diesel CLI replacement**
1102+ 1. **Native migration CLI replacement**
11031103 ` ` ` bash
11041104 # Instead of:
11051105 diesel migration run
11061106 diesel migration revert
11071107
11081108 # Users can:
1109- diesel-guard migrate run # Checks safety, then runs
1110- diesel-guard migrate revert # Checks down.sql safety, then reverts
1111- diesel-guard migrate status # Show migration status + safety summary
1109+ diesel-guard migrate run # Checks safety, runs with sqlx migrate run
1110+ diesel-guard migrate revert # Checks safety, reverts migrations
11121111 ` ` `
11131112
111411132. **Automatic safety checking before execution**
11151114 - Run all safety checks before applying any migration
11161115
111711163. **Migration generation with safe templates**
11181117 ` ` ` bash
1118+ # Works for both Diesel and SQLx based on diesel-guard.toml config
11191119 diesel-guard migration generate add_user_email
11201120
1121- # Generates migration with safety comments and safe patterns:
1121+ # Generates migration with safety comments and safe patterns
1122+ # (format depends on configured framework)
1123+ #
1124+ # Example for Diesel:
11221125 # up.sql:
11231126 # -- Migration: Add email column to users
11241127 # -- Safe pattern: Add without default, backfill separately
0 commit comments