mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Added interface method DatabaseConfigurationHelper::requireDatabaseVersion(), all database helpers that implement DatabaseConfigurationHelper must now have this method, which as of now is MySQL, PostgreSQL, SQL Server and SQLite (from r104923)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112405 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e5f41ca3e0
commit
84b74a6d23
@ -30,6 +30,13 @@ interface DatabaseConfigurationHelper {
|
|||||||
*/
|
*/
|
||||||
public function requireDatabaseConnection($databaseConfig);
|
public function requireDatabaseConnection($databaseConfig);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ensure that the database version is correct.
|
||||||
|
* @param array $databaseConfig Associative array of db configuration, e.g. "server", "username" etc
|
||||||
|
* @return array Result - e.g. array('success' => true, 'error' => 'details of error')
|
||||||
|
*/
|
||||||
|
public function requireDatabaseVersion($databaseConfig);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure that the database connection is able to use an existing database,
|
* Ensure that the database connection is able to use an existing database,
|
||||||
* or be able to create one if it doesn't exist.
|
* or be able to create one if it doesn't exist.
|
||||||
|
Loading…
Reference in New Issue
Block a user