From 286b43d1733e00c49e6246669896cde0340f990b Mon Sep 17 00:00:00 2001
From: Přemysl Eric Janouch <p@janouch.name>
Date: Tue, 12 Dec 2023 07:54:44 +0100
Subject: More database thinking

---
 initialize.sql | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'initialize.sql')

diff --git a/initialize.sql b/initialize.sql
index 4e2c56e..31f4b13 100644
--- a/initialize.sql
+++ b/initialize.sql
@@ -65,9 +65,8 @@ CREATE TABLE IF NOT EXISTS tag_space(
 CREATE UNIQUE INDEX IF NOT EXISTS tag_space__name ON tag_space(name);
 
 -- To avoid having to deal with NULLs, always create this special tag space.
-INSERT INTO tag_space(id, name, description)
-VALUES(0, '', 'User-defined tags')
-ON CONFLICT DO NOTHING;
+INSERT OR IGNORE INTO tag_space(id, name, description)
+VALUES(0, '', 'User-defined tags');
 
 CREATE TABLE IF NOT EXISTS tag(
 	id       INTEGER NOT NULL,
-- 
cgit v1.2.3-70-g09d2

