Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Traverse symlinks when resolving migrations
When enumerating the source directory seeking migration files, `sqlx` ignores entries that aren't files. This was previously reported as launchbadge#614 and fixed in launchbadge#985 but apparently regressed somewhere along the way. This commit reintroduces the fix from launchbadge#985 to the current implementation: use `std::fs::metadata` instead of `std::fs::DirEntry::metadata`. The former is documented to traverse symlinks; the latter does not.
- Loading branch information