Skip to content

Migrator

pretendVersion()

pretendVersion() — returns struct

Available in: migrator Category: General Functions

Records a version as applied in wheels_migrator_versions without running its up() method. Useful when a peer applied the migration via direct SQL or a different tool and you need the tracking table to reflect that. Refuses if the version is already applied, or if no local file matches (only known versions can be pretended). Returns: {success, recorded, message}

NameTypeRequiredDefaultDescription
versionstringyes—The version string to record (digits only after sanitisation).