Skip to content

Commit

Permalink
fix: edit the deleting function
Browse files Browse the repository at this point in the history
Closes: #218
  • Loading branch information
ColinRgm committed Jan 13, 2025
1 parent dd96127 commit a9cd989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/migration/deploy/new_way_delete_esp_permission.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ GRANT DELETE ON api.data TO web_user;
GRANT DELETE ON api.esp TO web_user;

-- Delete the function if exists
DROP FUNCTION IF EXISTS api.delete_esp_data_and_esp(id);
DROP FUNCTION IF EXISTS api.delete_esp_data_and_esp();

-- Create the function
CREATE FUNCTION api.delete_esp_data_and_esp(id)
CREATE FUNCTION api.delete_esp_data_and_esp()
RETURNS VOID AS $$

BEGIN
Expand Down

0 comments on commit a9cd989

Please sign in to comment.