diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-13 12:39:08 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-13 12:39:08 -0600 |
commit | 26c16559c3496f5496ad6e83e55c40f03edda5bd (patch) | |
tree | 7fae40060eb2da6b5aaa68cb20516d3b233dbd8f /phpBB/includes/db/migration | |
parent | 93f9ebbb258a06e34198cffda0f5fd8dfdf29597 (diff) | |
download | forums-26c16559c3496f5496ad6e83e55c40f03edda5bd.tar forums-26c16559c3496f5496ad6e83e55c40f03edda5bd.tar.gz forums-26c16559c3496f5496ad6e83e55c40f03edda5bd.tar.bz2 forums-26c16559c3496f5496ad6e83e55c40f03edda5bd.tar.xz forums-26c16559c3496f5496ad6e83e55c40f03edda5bd.zip |
[feature/migrations] Function effectively_installed() in migrations
Allows you to check if the migration is effectively installed
(entirely optionall)
This function is intended to help moving to migrations from a
previous database updater, where some migrations may have been
installed already even though they are not yet listed in the
migrations table.
PHPBB3-9737
Diffstat (limited to 'phpBB/includes/db/migration')
-rw-r--r-- | phpBB/includes/db/migration/migration.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/migration.php b/phpBB/includes/db/migration/migration.php index 4271751362..cf1e97b3b1 100644 --- a/phpBB/includes/db/migration/migration.php +++ b/phpBB/includes/db/migration/migration.php @@ -84,6 +84,21 @@ abstract class phpbb_db_migration } /** + * Allows you to check if the migration is effectively installed (entirely optionall) + * + * This is checked when a migration is installed. If true is returned, the migration will be set as + * installed without performing the database changes. + * This function is intended to help moving to migrations from a previous database updater, where some + * migrations may have been installed already even though they are not yet listed in the migrations table. + * + * @return bool True if this migration is installed, False if this migration is not installed (checked on install) + */ + public function effectively_installed() + { + return false; + } + + /** * Updates the database schema by providing a set of change instructions * * @return array Array of schema changes (compatible with db_tools->perform_schema_changes()) |