From 5b2166496e5f3ff2c4276e0b5b28f109c70673d5 Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan.goodliffe@octal.co.uk>
Date: Wed, 15 Apr 2026 12:03:21 +0100
Subject: Replace use of crc32 for entity id

Entity value is MD5 hashed same as DB unique key, but the id itself is
now taken from the DB primary key which is sequence generated.
---
 src/sql/entityInsert.sql | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src/sql/entityInsert.sql')

diff --git a/src/sql/entityInsert.sql b/src/sql/entityInsert.sql
index 8e25810..f518617 100644
--- a/src/sql/entityInsert.sql
+++ b/src/sql/entityInsert.sql
@@ -1,4 +1,2 @@
-INSERT INTO entities(id, type, value)
-	VALUES (?, ?, ?)
-ON CONFLICT
-	DO NOTHING
+SELECT
+	entity(?, ?)
-- 
cgit v1.3

