CI_Migration::version()

version($target_version)

Parameters:
  • $target_version (mixed) – Migration version to process
Returns:

TRUE if no migrations are found, current version string on success, FALSE on failure

Return type:

mixed

Version can be used to roll back changes or step forwards programmatically to specific versions. It works just like current() but ignores $config['migration_version'].

$this->migration->version(5);
doc_CodeIgniter
2016-10-15 16:31:47
Comments
Leave a Comment

Please login to continue.