@stacksjs/defaults 0.75.106 → 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 make:migration create_orders_table
35
+ buddy generate:migrations
36
36
  ```
37
37
 
38
- Creates a timestamped migration file in `database/migrations/`.
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:
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.106",
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.106",
5
+ "version": "0.75.108",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -55,8 +55,8 @@
55
55
  "dependencies": {
56
56
  "@iconify-json/f7": "^1.2.2",
57
57
  "@iconify-json/hugeicons": "^1.2.35",
58
- "@stacksjs/mobile": "^0.75.106",
59
- "@stacksjs/sanitizer": "^0.2.419",
58
+ "@stacksjs/mobile": "^0.75.108",
59
+ "@stacksjs/sanitizer": "^0.2.422",
60
60
  "@xterm/addon-fit": "^0.11.0",
61
61
  "@xterm/xterm": "^6.0.0",
62
62
  "ts-qr-codes": "^0.1.8"
@@ -39,6 +39,20 @@
39
39
  "highlight": true
40
40
  }
41
41
  },
42
+ {
43
+ "id": "automation",
44
+ "name": "Automation",
45
+ "icon": "tablecells.fill",
46
+ "hasDedicatedPage": false,
47
+ "category": "data"
48
+ },
49
+ {
50
+ "id": "automation-run",
51
+ "name": "AutomationRun",
52
+ "icon": "tablecells.fill",
53
+ "hasDedicatedPage": false,
54
+ "category": "data"
55
+ },
42
56
  {
43
57
  "id": "bid",
44
58
  "name": "Bid",
@@ -84,6 +98,13 @@
84
98
  "hasDedicatedPage": false,
85
99
  "category": "data"
86
100
  },
101
+ {
102
+ "id": "campaign-variant",
103
+ "name": "CampaignVariant",
104
+ "icon": "tablecells.fill",
105
+ "hasDedicatedPage": false,
106
+ "category": "data"
107
+ },
87
108
  {
88
109
  "id": "card",
89
110
  "name": "Card",
@@ -124,6 +145,13 @@
124
145
  "highlight": true
125
146
  }
126
147
  },
148
+ {
149
+ "id": "categorizable",
150
+ "name": "Categorizable",
151
+ "icon": "tablecells.fill",
152
+ "hasDedicatedPage": false,
153
+ "category": "content"
154
+ },
127
155
  {
128
156
  "id": "category",
129
157
  "name": "Category",
@@ -141,6 +169,20 @@
141
169
  "hasDedicatedPage": true,
142
170
  "category": "content"
143
171
  },
172
+ {
173
+ "id": "communication-suppression",
174
+ "name": "CommunicationSuppression",
175
+ "icon": "tablecells.fill",
176
+ "hasDedicatedPage": false,
177
+ "category": "data"
178
+ },
179
+ {
180
+ "id": "consent-event",
181
+ "name": "ConsentEvent",
182
+ "icon": "tablecells.fill",
183
+ "hasDedicatedPage": false,
184
+ "category": "data"
185
+ },
144
186
  {
145
187
  "id": "coupon",
146
188
  "name": "Coupon",
@@ -154,7 +196,7 @@
154
196
  {
155
197
  "id": "courier",
156
198
  "name": "Courier",
157
- "icon": "car.fill",
199
+ "icon": "tablecells.fill",
158
200
  "hasDedicatedPage": false,
159
201
  "category": "commerce",
160
202
  "dashboard": {
@@ -262,6 +304,34 @@
262
304
  "enabled": false
263
305
  }
264
306
  },
307
+ {
308
+ "id": "form",
309
+ "name": "Form",
310
+ "icon": "tablecells.fill",
311
+ "hasDedicatedPage": false,
312
+ "category": "data"
313
+ },
314
+ {
315
+ "id": "form-field",
316
+ "name": "FormField",
317
+ "icon": "tablecells.fill",
318
+ "hasDedicatedPage": false,
319
+ "category": "data"
320
+ },
321
+ {
322
+ "id": "form-submission",
323
+ "name": "FormSubmission",
324
+ "icon": "tablecells.fill",
325
+ "hasDedicatedPage": false,
326
+ "category": "data"
327
+ },
328
+ {
329
+ "id": "gdpr-request",
330
+ "name": "GdprRequest",
331
+ "icon": "tablecells.fill",
332
+ "hasDedicatedPage": false,
333
+ "category": "data"
334
+ },
265
335
  {
266
336
  "id": "gift-card",
267
337
  "name": "GiftCard",
@@ -326,6 +396,13 @@
326
396
  "highlight": true
327
397
  }
328
398
  },
399
+ {
400
+ "id": "magic-link-token",
401
+ "name": "MagicLinkToken",
402
+ "icon": "tablecells.fill",
403
+ "hasDedicatedPage": false,
404
+ "category": "data"
405
+ },
329
406
  {
330
407
  "id": "mail-preference",
331
408
  "name": "MailPreference",
@@ -343,6 +420,20 @@
343
420
  "highlight": true
344
421
  }
345
422
  },
423
+ {
424
+ "id": "menu",
425
+ "name": "Menu",
426
+ "icon": "tablecells.fill",
427
+ "hasDedicatedPage": false,
428
+ "category": "content"
429
+ },
430
+ {
431
+ "id": "menu-item",
432
+ "name": "MenuItem",
433
+ "icon": "tablecells.fill",
434
+ "hasDedicatedPage": false,
435
+ "category": "content"
436
+ },
346
437
  {
347
438
  "id": "notification",
348
439
  "name": "Notification",
@@ -391,6 +482,13 @@
391
482
  "hasDedicatedPage": true,
392
483
  "category": "content"
393
484
  },
485
+ {
486
+ "id": "page-revision",
487
+ "name": "PageRevision",
488
+ "icon": "tablecells.fill",
489
+ "hasDedicatedPage": false,
490
+ "category": "content"
491
+ },
394
492
  {
395
493
  "id": "payment",
396
494
  "name": "Payment",
@@ -422,6 +520,23 @@
422
520
  "hasDedicatedPage": false,
423
521
  "category": "commerce"
424
522
  },
523
+ {
524
+ "id": "payment-webhook-event",
525
+ "name": "PaymentWebhookEvent",
526
+ "icon": "tablecells.fill",
527
+ "hasDedicatedPage": false,
528
+ "category": "commerce",
529
+ "dashboard": {
530
+ "enabled": false
531
+ }
532
+ },
533
+ {
534
+ "id": "personal-access-token",
535
+ "name": "PersonalAccessToken",
536
+ "icon": "tablecells.fill",
537
+ "hasDedicatedPage": false,
538
+ "category": "data"
539
+ },
425
540
  {
426
541
  "id": "pledge",
427
542
  "name": "Pledge",
@@ -497,6 +612,27 @@
497
612
  "highlight": true
498
613
  }
499
614
  },
615
+ {
616
+ "id": "redirect",
617
+ "name": "Redirect",
618
+ "icon": "tablecells.fill",
619
+ "hasDedicatedPage": false,
620
+ "category": "content"
621
+ },
622
+ {
623
+ "id": "referral",
624
+ "name": "Referral",
625
+ "icon": "tablecells.fill",
626
+ "hasDedicatedPage": false,
627
+ "category": "data"
628
+ },
629
+ {
630
+ "id": "referral-code",
631
+ "name": "ReferralCode",
632
+ "icon": "tablecells.fill",
633
+ "hasDedicatedPage": false,
634
+ "category": "data"
635
+ },
500
636
  {
501
637
  "id": "release",
502
638
  "name": "Release",
@@ -517,6 +653,13 @@
517
653
  "highlight": true
518
654
  }
519
655
  },
656
+ {
657
+ "id": "sender-domain",
658
+ "name": "SenderDomain",
659
+ "icon": "tablecells.fill",
660
+ "hasDedicatedPage": false,
661
+ "category": "data"
662
+ },
520
663
  {
521
664
  "id": "shipping-method",
522
665
  "name": "ShippingMethod",
@@ -547,6 +690,30 @@
547
690
  "highlight": true
548
691
  }
549
692
  },
693
+ {
694
+ "id": "site",
695
+ "name": "Site",
696
+ "icon": "tablecells.fill",
697
+ "hasDedicatedPage": false,
698
+ "category": "data",
699
+ "dashboard": {
700
+ "highlight": true
701
+ }
702
+ },
703
+ {
704
+ "id": "site-domain",
705
+ "name": "SiteDomain",
706
+ "icon": "tablecells.fill",
707
+ "hasDedicatedPage": false,
708
+ "category": "data"
709
+ },
710
+ {
711
+ "id": "sms-opt-out",
712
+ "name": "SmsOptOut",
713
+ "icon": "tablecells.fill",
714
+ "hasDedicatedPage": false,
715
+ "category": "data"
716
+ },
550
717
  {
551
718
  "id": "social-account",
552
719
  "name": "SocialAccount",
@@ -561,6 +728,26 @@
561
728
  "hasDedicatedPage": false,
562
729
  "category": "marketing"
563
730
  },
731
+ {
732
+ "id": "storage-item",
733
+ "name": "StorageItem",
734
+ "icon": "tablecells.fill",
735
+ "hasDedicatedPage": false,
736
+ "category": "data",
737
+ "dashboard": {
738
+ "enabled": false
739
+ }
740
+ },
741
+ {
742
+ "id": "storage-item-task",
743
+ "name": "StorageItemTask",
744
+ "icon": "tablecells.fill",
745
+ "hasDedicatedPage": false,
746
+ "category": "data",
747
+ "dashboard": {
748
+ "enabled": false
749
+ }
750
+ },
564
751
  {
565
752
  "id": "subscriber",
566
753
  "name": "Subscriber",
@@ -639,6 +826,13 @@
639
826
  "highlight": true
640
827
  }
641
828
  },
829
+ {
830
+ "id": "usage-event",
831
+ "name": "UsageEvent",
832
+ "icon": "tablecells.fill",
833
+ "hasDedicatedPage": false,
834
+ "category": "data"
835
+ },
642
836
  {
643
837
  "id": "user",
644
838
  "name": "User",
@@ -696,4 +890,4 @@
696
890
  }
697
891
  },
698
892
  "nav": []
699
- }
893
+ }