Create a new versioned migration
d1 & hyperdrive
// what it does
Scaffolds a numbered, empty .sql migration file in your migrations directory. You write the DDL; wrangler tracks which files have been applied so schema changes are versioned and repeatable across environments — the disciplined alternative to ad-hoc --file execs.
// shell
$ wrangler d1 migrations create <database> "add_users_table"// gotcha
The folder is controlled by migrations_dir in your wrangler config (defaults to ./migrations). If create and apply are pointed at different dirs, apply silently sees no files.