From e500b024e38fbdffec297383ede13f74d8ae315d Mon Sep 17 00:00:00 2001 From: Stephen Shkardoon Date: Sun, 24 Mar 2013 03:05:04 +1300 Subject: [PATCH] Update MSSQLDatabaseConfigurationHelper.php In preparation for https://github.com/silverstripe/sapphire/pull/1319 Probably should accept this at the same time. If someone knows of the relevant ALTER permissions in MSSQL, feel free to implement. --- code/MSSQLDatabaseConfigurationHelper.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/code/MSSQLDatabaseConfigurationHelper.php b/code/MSSQLDatabaseConfigurationHelper.php index 89fdf76..7812874 100644 --- a/code/MSSQLDatabaseConfigurationHelper.php +++ b/code/MSSQLDatabaseConfigurationHelper.php @@ -188,5 +188,16 @@ class MSSQLDatabaseConfigurationHelper implements DatabaseConfigurationHelper { 'alreadyExists' => $alreadyExists ); } + + /** + * Ensure we have permissions to alter tables. + * + * @param array $databaseConfig Associative array of db configuration, e.g. "server", "username" etc + * @return array Result - e.g. array('okay' => true, 'applies' => true), where applies is whether + * the test is relevant for the database + */ + public function requireDatabaseAlterPermissions($databaseConfig) { + return array('success' => true, 'applies' => false); + } -} \ No newline at end of file +}