Skip to main content

migration_number

Function migration_number 

Source
pub fn migration_number(file: &str) -> Option<&str>
Expand description

The number of a well-formed migration file name, NNNN_<name>.sql: four ASCII digits, an underscore, then one or more letters, digits, _ or -. Wrangler applies a directory’s .sql files in name order, so the fixed width keeps that order numeric.