migraguard 0.2.2 → 0.3.0
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 +3 -3
- package/README.md +524 -418
- package/dist/cli.js +129 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
@@ -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 --
|
|
108
|
+
migraguard deps --html deps.html # output as HTML with GitGraph.js visualization
|
|
109
109
|
```
|