1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[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
This commit is contained in:
Nathan Guse
2013-01-13 12:39:08 -06:00
parent 93f9ebbb25
commit 26c16559c3
4 changed files with 83 additions and 3 deletions

View File

@@ -83,6 +83,21 @@ abstract class phpbb_db_migration
return array();
}
/**
* 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
*