migraguard 0.2.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/COMMANDS.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### `migraguard new <name>`
6
6
 
7
- Create a new migration SQL file with a UTC timestamp prefix.
7
+ Create a new migration SQL file with a local-timezone timestamp prefix.
8
8
 
9
9
  ```bash
10
10
  migraguard new add_users_email_index
@@ -25,7 +25,7 @@ Apply pending migrations to the target DB via `psql`. Checks `schema_migrations`
25
25
 
26
26
  ```bash
27
27
  migraguard apply
28
- migraguard apply --verify # verify schema dump before and after
28
+ migraguard apply --with-drift-check # check schema drift before apply, update dump after
29
29
  ```
30
30
 
31
31
  ### `migraguard resolve <file>`
@@ -56,7 +56,7 @@ migraguard editable
56
56
 
57
57
  ### `migraguard check`
58
58
 
59
- Verify file integrity against metadata.json. No DB connection required. Detects: checksum mismatches on non-latest files, mid-sequence insertions, and multiple new files (enforces squash).
59
+ Verify file integrity against metadata.json. No DB connection required. Checksums are computed on normalized SQL (comments stripped, whitespace collapsed), so comment-only or formatting changes do not trigger mismatches. Detects: checksum mismatches on non-latest files, mid-sequence insertions, and multiple new files (enforces squash).
60
60
 
61
61
  ```bash
62
62
  migraguard check
@@ -105,5 +105,5 @@ Analyze and display the dependency graph between migration files.
105
105
 
106
106
  ```bash
107
107
  migraguard deps
108
- migraguard deps --dot # output in DOT format for Graphviz
108
+ migraguard deps --html deps.html # output as HTML with GitGraph.js visualization
109
109
  ```