From ef3dc72dca06f94fc3bbb846e72e62e2902753cb Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 May 2020 05:51:58 +0000 Subject: [PATCH] Ensure unified order of 'verb' records --- src/Database/DBStructure.php | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.39.5