aboutsummaryrefslogtreecommitdiff
path: root/dbstore/sql/cisa/insert-product.sql
diff options
context:
space:
mode:
Diffstat (limited to 'dbstore/sql/cisa/insert-product.sql')
-rw-r--r--dbstore/sql/cisa/insert-product.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/dbstore/sql/cisa/insert-product.sql b/dbstore/sql/cisa/insert-product.sql
new file mode 100644
index 0000000..cbf9103
--- /dev/null
+++ b/dbstore/sql/cisa/insert-product.sql
@@ -0,0 +1,3 @@
+-- insert product if it does not exist, or do nothing if the the product
+-- name is already present.
+INSERT INTO cisa_products(name) VALUES (?) ON CONFLICT(name) DO NOTHING;