summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/migration.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-08 03:27:48 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-08 03:27:48 +0100
commit28c2c975b118016d07212ed8e7c22ff280309f82 (patch)
treef1552392a3d87efebd7c565c6414ae41dc208ee9 /user_guide_src/source/libraries/migration.rst
parent9228f85b1b4f59cc88ba7c4addc258a7a5fd0ac0 (diff)
[ci skip] Add return types to library docs
Diffstat (limited to 'user_guide_src/source/libraries/migration.rst')
-rw-r--r--user_guide_src/source/libraries/migration.rst22
1 files changed, 14 insertions, 8 deletions
diff --git a/user_guide_src/source/libraries/migration.rst b/user_guide_src/source/libraries/migration.rst
index 4143609bb..e8ea1d977 100644
--- a/user_guide_src/source/libraries/migration.rst
+++ b/user_guide_src/source/libraries/migration.rst
@@ -142,25 +142,30 @@ Class Reference
.. method:: current()
- :returns: mixed
+ :returns: TRUE if no migrations are found, current version string on success, FALSE on failure
+ :rtype: mixed
- Migrates up to the current version (whatever is set for ``$config['migration_version']`` in *application/config/migration.php*).
+ Migrates up to the current version (whatever is set for
+ ``$config['migration_version']`` in *application/config/migration.php*).
.. method:: error_string()
- :returns: string
+ :returns: Error messages
+ :rtype: string
This returns a string of errors that were detected while performing a migration.
.. method:: find_migrations()
- :returns: array
+ :returns: An array of migration files
+ :rtype: array
An array of migration filenames are returned that are found in the **migration_path** property.
.. method:: latest()
- :returns: mixed
+ :returns: TRUE if no migrations are found, current version string on success, FALSE on failure
+ :rtype: mixed
This works much the same way as ``current()`` but instead of looking for
the ``$config['migration_version']`` the Migration class will use the very
@@ -168,11 +173,12 @@ Class Reference
.. method:: version($target_version)
- :param mixed $target_version: Migration version to process
- :returns: mixed
+ :param mixed $target_version: Migration version to process
+ :returns: TRUE if no migrations are found, current version string on success, FALSE on failure
+ :rtype: 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);
+ $this->migration->version(5); \ No newline at end of file