summaryrefslogtreecommitdiffstats
path: root/system/libraries/Migration.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-04-27 16:06:25 +0200
committerTimothy Warren <tim@timshomepage.net>2012-04-27 16:06:25 +0200
commit86611db279c17cf9b3d6ad8732a1c840cb833148 (patch)
tree9b1a0fa5047b728a9355eada3d28d6d198a4bf9b /system/libraries/Migration.php
parent7183ff91112e540315dffdef2cea0d6d491cdc2e (diff)
Fixed Cart, Migration, Parser and Zip libraries
Diffstat (limited to 'system/libraries/Migration.php')
-rw-r--r--system/libraries/Migration.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index a18fcb9f1..ce4683fc1 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -39,14 +39,53 @@
*/
class CI_Migration {
+ /**
+ * Whether the library is enabled
+ *
+ * @var bool
+ */
protected $_migration_enabled = FALSE;
+
+ /**
+ * Path to migration classes
+ *
+ * @var string
+ */
protected $_migration_path = NULL;
+
+ /**
+ * Current migration version
+ *
+ * @var mixed
+ */
protected $_migration_version = 0;
+
+ /**
+ * Database table with migration info
+ *
+ * @var string
+ */
protected $_migration_table = 'migrations';
+
+ /**
+ * Whether to automatically run migrations
+ *
+ * @var bool
+ */
protected $_migration_auto_latest = FALSE;
+ /**
+ * Error message
+ *
+ * @var string
+ */
protected $_error_string = '';
+ /**
+ * Initialize Migration Class
+ *
+ * @param array
+ */
public function __construct($config = array())
{
# Only run this constructor on main library load