Merge pull request #2 from ss23/patch-1

Update SQLiteDatabaseConfigurationHelper.php
This commit is contained in:
Simon Welsh 2013-03-24 03:05:23 -07:00
commit 7e02ff12ea
1 changed files with 11 additions and 0 deletions

View File

@ -202,4 +202,15 @@ class SQLiteDatabaseConfigurationHelper implements DatabaseConfigurationHelper {
public static function secure_db_dir($path) {
return (is_writeable($path)) ? file_put_contents($path . '/.htaccess', 'deny from all') : false;
}
/**
* 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);
}
}