DATE_FORMAT
DATE_FORMAT = 'YmdHis' : string
mapClassNameToFileName(string $className) : string
Turn migration names like 'CreateUserTable' into file names like '12345678901234_create_user_table.php' or 'LimitResourceNamesTo30Chars' into '12345678901234_limit_resource_names_to_30_chars.php'.
string | $className | Class Name |
isUniqueMigrationClassName(string $className, string $path) : boolean
Check if a migration class name is unique regardless of the timestamp.
This method takes a class name and a path to a migrations directory.
Migration class names must be in CamelCase format. e.g: CreateUserTable or AddIndexToPostsTable.
Single words are not allowed on their own.
string | $className | Class Name |
string | $path | Path |
isValidPhinxClassName(string $className) : boolean
Check if a migration/seed class name is valid.
Migration & Seed class names must be in CamelCase format. e.g: CreateUserTable, AddIndexToPostsTable or UserSeeder.
Single words are not allowed on their own.
string | $className | Class Name |