diff options
author | Nils Adermann <naderman@naderman.de> | 2012-11-11 12:12:05 +0100 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-09 16:42:48 -0600 |
commit | 41de95bc11c0b64eafa294f03432f619d3d712d5 (patch) | |
tree | 38d41600c9d07e4308bdc2fe4a2658700285b1ae /phpBB/includes/db/migration.php | |
parent | 82efb3e446efbb8ef05c6a777e3866901abfd07a (diff) | |
download | forums-41de95bc11c0b64eafa294f03432f619d3d712d5.tar forums-41de95bc11c0b64eafa294f03432f619d3d712d5.tar.gz forums-41de95bc11c0b64eafa294f03432f619d3d712d5.tar.bz2 forums-41de95bc11c0b64eafa294f03432f619d3d712d5.tar.xz forums-41de95bc11c0b64eafa294f03432f619d3d712d5.zip |
[feature/migrations] Process migration steps and move to PHP5 code
Diffstat (limited to 'phpBB/includes/db/migration.php')
-rw-r--r-- | phpBB/includes/db/migration.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/phpBB/includes/db/migration.php b/phpBB/includes/db/migration.php index c98ac8728a..4e83d2570c 100644 --- a/phpBB/includes/db/migration.php +++ b/phpBB/includes/db/migration.php @@ -26,14 +26,14 @@ if (!defined('IN_PHPBB')) */ class phpbb_db_migration { - var $db; - var $db_tools; - var $table_prefix; + protected $db; + protected $db_tools; + protected $table_prefix; - var $phpbb_root_path; - var $php_ext; + protected $phpbb_root_path; + protected $php_ext; - var $errors; + protected $errors; /** * Migration constructor @@ -44,7 +44,7 @@ class phpbb_db_migration * @param string $phpbb_root_path * @param string $php_ext */ - function phpbb_db_migration($db, $db_tools, $table_prefix, $phpbb_root_path, $php_ext) + public function phpbb_db_migration($db, $db_tools, $table_prefix, $phpbb_root_path, $php_ext) { $this->db = $db; $this->db_tools = $db_tools; @@ -61,7 +61,7 @@ class phpbb_db_migration * * @return array An array of migration class names */ - function depends_on() + public function depends_on() { return array(); } @@ -71,24 +71,24 @@ class phpbb_db_migration * * @return array */ - function update_schema() + public function update_schema() { return array(); } /** - * Updates data + * Updates data by returning a list of instructions to be executed * - * @return null + * @return array */ - function update_data() + public function update_data() { } /** * Wrapper for running queries to generate user feedback on updates */ - function sql_query($sql) + protected function sql_query($sql) { if (defined('DEBUG_EXTRA')) { |