From: Michael Date: Tue, 19 May 2020 05:51:58 +0000 (+0000) Subject: Ensure unified order of 'verb' records X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef3dc72dca06f94fc3bbb846e72e62e2902753cb;p=friendica.git Ensure unified order of 'verb' records --- diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index b16879e9cc..bf76eccacb 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -1004,6 +1004,12 @@ class DBStructure */ public static function checkInitialValues() { + if (self::existsTable('verb') && !DBA::exists('verb', ['id' => 1])) { + foreach (Item::ACTIVITIES as $index => $activity) { + DBA::insert('verb', ['id' => $index + 1, 'name' => $activity], true); + } + } + if (self::existsTable('contact') && !DBA::exists('contact', ['id' => 0])) { DBA::insert('contact', ['nurl' => '']); $lastid = DBA::lastInsertId();