Full DDL for an empty database: the diff from nothing to this schema.
Full DDL for an empty database: the diff from nothing to this schema.
Deliberately the same code path migrations take, so reset and migrate cannot produce different databases. Ordering (tables, then FKs, then indexes) comes from Differ.diff; column order is alphabetical, per DESIGN ยง3.2.