From 6b8ab6fe190e9d8f42242ff1f57be8c28e9ca066 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Mon, 27 Mar 2023 04:01:47 +0900
Subject: Delete insert/delete functions.

---
 deploy/delete_item.sql | 15 ---------------
 1 file changed, 15 deletions(-)
 delete mode 100644 deploy/delete_item.sql

(limited to 'deploy/delete_item.sql')

diff --git a/deploy/delete_item.sql b/deploy/delete_item.sql
deleted file mode 100644
index 38b3083..0000000
--- a/deploy/delete_item.sql
+++ /dev/null
@@ -1,15 +0,0 @@
--- Deploy kakeibo:delete_item to pg
--- requires: schema
--- requires: items
-
-BEGIN;
-
-CREATE OR REPLACE FUNCTION kakeibo.delete_item(
-  p_item_id INTEGER
-) RETURNS VOID AS $$
-  BEGIN
-    DELETE FROM kakeibo.items WHERE id = p_item_id;
-  END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-COMMIT;
-- 
cgit v1.2.3

