@noego/proper 0.2.0 → 0.2.2
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/bin/cli.js +35 -6
- package/bin/cli.js.map +1 -1
- package/bin/cli.mjs +40 -7
- package/bin/cli.mjs.map +1 -1
- package/bin/index.js +35 -6
- package/bin/index.js.map +1 -1
- package/bin/index.mjs +35 -6
- package/bin/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +10 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -57,6 +57,11 @@ Below is a fast-track on **how to work** with SQL Proper from the command line.
|
|
|
57
57
|
```
|
|
58
58
|
Edit those `.sql` files and add your migration scripts.
|
|
59
59
|
|
|
60
|
+
Always use `proper create` to mint the timestamp — never type one by hand.
|
|
61
|
+
Generated stamps never end in `0`, and `proper up` refuses to apply a
|
|
62
|
+
**pending** migration whose stamp ends in `000` (a tell-tale hand-typed
|
|
63
|
+
value). Migrations that were already applied are never re-checked.
|
|
64
|
+
|
|
60
65
|
3. **Apply migrations**:
|
|
61
66
|
```bash
|
|
62
67
|
proper up
|
|
@@ -298,6 +303,11 @@ runnable — complete the file before running another database-backed command.
|
|
|
298
303
|
}
|
|
299
304
|
```
|
|
300
305
|
|
|
306
|
+
Patches may also be co-located with migrations by setting `patch_folder` to
|
|
307
|
+
the same path as `migration_folder` — migration discovery only considers
|
|
308
|
+
`*.up/down.sql|js` files and patch discovery only considers top-level
|
|
309
|
+
`*.yaml` files, so the two never interfere.
|
|
310
|
+
|
|
301
311
|
### Patch file format (version 1)
|
|
302
312
|
|
|
303
313
|
```yaml
|