From 7b406242188fd70b46e4406993417fdc52a165cd Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 30 Apr 2024 13:49:59 +0200 Subject: [PATCH] modified version update --- composer.json | 2 +- src/Repository/SettingsRepository.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0b8279a..b9b2569 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "24unix/bindapi", "description": "manage Bind9 DNS server via REST API", "version": "1.0.9", - "build_number": "365", + "build_number": "366", "authors": [ { "name": "Micha Espey", diff --git a/src/Repository/SettingsRepository.php b/src/Repository/SettingsRepository.php index 795d2fa..9c86f4b 100644 --- a/src/Repository/SettingsRepository.php +++ b/src/Repository/SettingsRepository.php @@ -49,8 +49,8 @@ readonly class SettingsRepository "; } else { $sql = " - INSERT INTO " . DatabaseConnection::TABLE_SETTINGS . " (name, value) - VALUES (:name, :value) + INSERT INTO " . DatabaseConnection::TABLE_SETTINGS . " (id, name, value) + VALUES (UUID(), :name, :value) "; }