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) "; }