diff --git a/encryption_package/ddl/install.sql b/encryption_package/ddl/install.sql index 214a8d6..9800d06 100644 --- a/encryption_package/ddl/install.sql +++ b/encryption_package/ddl/install.sql @@ -2,8 +2,8 @@ select version(); \set libfile '\''`pwd`'/lib/Encryption.so\''; -CREATE LIBRARY Encryption as :libfile; -CREATE FUNCTION AESEncrypt as language 'C++' name 'AESEncryptFactory' library Encryption; -CREATE FUNCTION AESDecrypt as language 'C++' name 'AESDecryptFactory' library Encryption; +CREATE OR REPLACE LIBRARY Encryption as :libfile; +CREATE OR REPLACE FUNCTION AESEncrypt as language 'C++' name 'AESEncryptFactory' library Encryption; +CREATE OR REPLACE FUNCTION AESDecrypt as language 'C++' name 'AESDecryptFactory' library Encryption;