Ok .. in summary we have a problem: 1. --persist-to will not work since it moves the entire persist

Ok .. in summary we have a problem:
  1. --persist-to will not work since it moves the entire persistence directory
  2. the migrate tool goes off wrangler.toml and hence puts migrations to .wrangler/state/v3/d1/<UUID>
  3. but `npx wrangler pages dev --d1=<BINDING> reads the database off of .wrangler/state/v3/d1/<BINDING>.
The only solution I see for myself at this point is to follow a manual procedure on each database migration:
  1. copy database from d1/<BINDING> to d1/<UUID>
  2. run the migration
  3. copy migrated database from d1/<UUID> back to d1/<BINDING>
I wonder if this is intentional or a bug?
Was this page helpful?