-- ------------------------------------------
-- Friendica 2023.09-dev (Giant Rhubarb)
--- DB_UPDATE_VERSION 1519
+-- DB_UPDATE_VERSION 1520
-- ------------------------------------------
use Friendica\Database\DBA;
+// This file is required several times during the test in DbaDefinition which justifies this condition
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1519);
+ define('DB_UPDATE_VERSION', 1520);
}
return [
return Update::SUCCESS;
}
+
+function update_1520(): int
+{
+ DBA::update('user', ['parent-uid' => null], ['parent-uid' => 0]);
+
+ return Update::SUCCESS;
+}