]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Make Storage testable & add tests
[friendica.git] / update.php
index 40f39ebebad0783a07648d97f52abc4d870a63d6..90018b62d6a9319247bd31c747977f4387a4ea50 100644 (file)
@@ -408,3 +408,15 @@ function update_1327()
        return Update::SUCCESS;
 }
 
+function update_1329()
+{
+       $currStorage = Config::get('storage', 'class', '');
+
+       if (!empty($currStorage)) {
+               $storageName = array_key_first(\Friendica\Core\StorageManager::DEFAULT_BACKENDS, $currStorage);
+               Config::set('storage', 'name', $storageName);
+               Config::delete('storage', 'class');
+       }
+
+       return Update::SUCCESS;
+}