@stacksjs/defaults 0.75.107 → 0.75.108
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.
|
@@ -29,13 +29,15 @@ buddy seed # seed database
|
|
|
29
29
|
buddy generate:migrations # generate migrations from model diffs
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
## Creating a Migration
|
|
32
|
+
## Creating a Schema Migration
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
buddy
|
|
35
|
+
buddy generate:migrations
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Define or update the model first, then let the generator write the SQL in
|
|
39
|
+
`database/migrations/`. Do not hand-write a model's schema changes or edit a
|
|
40
|
+
generated migration to compensate for a missing model declaration.
|
|
39
41
|
|
|
40
42
|
## Migration Generation from Models
|
|
41
43
|
|
|
@@ -60,6 +62,12 @@ generated migration. It lives under `storage/framework/database/`, not `.qb/`.
|
|
|
60
62
|
Run the generator a second time before committing. A stable change reports
|
|
61
63
|
`Nothing to migrate` and `Model snapshot unchanged`.
|
|
62
64
|
|
|
65
|
+
Generation also makes ignored, generator-marked SQL visible to Git using
|
|
66
|
+
intent-to-add, including on a no-op rerun. This handles global `*.sql` ignores
|
|
67
|
+
without changing application ignore rules or staging SQL contents. Review and
|
|
68
|
+
stage migrations with their models and snapshot normally; do not add per-file
|
|
69
|
+
`.gitignore` exceptions. Dry-run previews never change the Git index.
|
|
70
|
+
|
|
63
71
|
## Built-in Migrations (96+)
|
|
64
72
|
|
|
65
73
|
The framework includes migrations for all built-in models:
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.108",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.108",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
58
|
-
"@stacksjs/mobile": "^0.75.
|
|
58
|
+
"@stacksjs/mobile": "^0.75.108",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.422",
|
|
60
60
|
"@xterm/addon-fit": "^0.11.0",
|
|
61
61
|
"@xterm/xterm": "^6.0.0",
|