Migra_engine.MigrationSourceCreate a migration record from a file path. Returns Error if the filename doesn't match the expected format.
Parse a section from migration file content. Extracts content between a section marker (e.g., "-- +migrate up") and the next section. Section matching is case-insensitive.
Read the up migration SQL from a migration file. Parses the content between -- +migrate up and the next section marker.
Read the down migration SQL from a migration file. Parses the content between -- +migrate down and the next section marker.
MD5 checksum (hex) of the migration file's full contents, for detecting whether a migration was modified after being applied.
Generate migration filename from version and description. Format: YYYYMMDDHHMMSS_description.sql