From 9f1e42231453c8a119ea34f97a912a45ea4ed362 Mon Sep 17 00:00:00 2001 From: Matthew Ross Date: Thu, 12 Jul 2018 08:38:47 -0400 Subject: [PATCH] Set user options for newly created user --- tools/tb-github-project.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tb-github-project.php b/tools/tb-github-project.php index a8f9623..57571fb 100644 --- a/tools/tb-github-project.php +++ b/tools/tb-github-project.php @@ -177,6 +177,11 @@ class TbGitHubImport { $stmt->bindValue(':lang', 'en'); $stmt->execute(); + + $optId = $this->db->lastInsertRowID(); + $stmt = $this->db->prepare('UPDATE user SET user_option_id = ' . $optId . + ' WHERE id = ' . $adminId); + $stmt->execute(); } $boardId = $this->cleanupExistingTables($project->name);