This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deletes the image object in storage when the corresponding record is deleted | |
CREATE OR REPLACE FUNCTION delete_corresponding_image() RETURNS trigger AS | |
$$BEGIN | |
DELETE | |
FROM storage.objects o | |
LEFT JOIN public.images ON i.id = o.image_id | |
RETURN NULL; | |
END;$$ LANGUAGE plpgsql; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +libovness is my blockchain ID. https://onename.com/libovness |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +libovness is my openname (Bitcoin username). https://onename.io/libovness |