turbine-orm 0.39.0 → 0.40.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/README.md CHANGED
@@ -605,9 +605,10 @@ Commands:
605
605
  init Initialize a Turbine project (creates config, dirs, templates)
606
606
  generate | pull Introspect database and generate TypeScript types + client
607
607
  push Apply schema-builder definitions to database
608
- migrate create <name> Create a new SQL migration file
609
- migrate create <name> --auto Auto-generate from schema diff
610
- migrate up Apply pending migrations
608
+ migrate create <name> Create a new SQL migration file
609
+ migrate create <name> --auto Auto-generate from schema diff
610
+ migrate create <name> --from-diff Like --auto, but flag destructive statements
611
+ migrate up Apply pending migrations
611
612
  migrate deploy Apply pending migrations without prompts
612
613
  migrate down Rollback last migration
613
614
  migrate status Show applied/pending migrations
@@ -623,6 +624,7 @@ Options:
623
624
  --out, -o <dir> Output directory (default: ./generated/turbine)
624
625
  --schema, -s <name> Postgres schema (default: public)
625
626
  --auto Auto-generate migration from schema diff
627
+ --from-diff Like --auto, but flag destructive statements (migrate create)
626
628
  --dry-run Show SQL without executing
627
629
  --verbose, -v Detailed output
628
630
  ```
@@ -662,6 +664,10 @@ npx turbine migrate create add_users_table
662
664
  npx turbine migrate create add_email_index --auto
663
665
  # -> Generates UP (ALTER/CREATE) and DOWN (reverse) SQL automatically
664
666
 
667
+ # Same diff, but destructive statements flagged inline (still refused by
668
+ # migrate up unless confirmed or --allow-destructive); cannot combine with --auto/--recipe
669
+ npx turbine migrate create sync_schema --from-diff
670
+
665
671
  # Apply all pending migrations
666
672
  npx turbine migrate up
667
673