Skip to content

Commit

Permalink
Merge pull request #19 from NikolayS/revert-18-new_apis
Browse files Browse the repository at this point in the history
Revert "New apis"
  • Loading branch information
dmius authored Mar 7, 2018
2 parents 2e55247 + ca5479d commit 440f7b7
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions uninstall_api.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
DROP FUNCTION IF EXISTS v1.google_translate(char, char, text);
DROP FUNCTION IF EXISTS v1.google_translate_array(char, char, json);
revoke execute on function v1.google_translate(char, char, text) from apiuser;
revoke execute on function v1.google_translate_array(char, char, json) from apiuser;
drop function v1.google_translate(char, char, text);
drop function v1.google_translate_array(char, char, json);
--revoke usage on schema v1 from apiuser;
--drop schema v1 cascade;
--drop role apiuser;

DROP FUNCTION IF EXISTS v1.promt_translate(char, char, text);
DROP FUNCTION IF EXISTS v1.promt_translate_array(char, char, json);

DROP FUNCTION IF EXISTS v1.bing_translate(char, char, text);
DROP FUNCTION IF EXISTS v1.bing_translate_array(char, char, json);
-- revoke usage on schema v1 from apiuser;
-- drop schema v1 cascade;
-- drop role apiuser;

DROP FUNCTION IF EXISTS v2.translate_array(CHAR(2), CHAR(2), JSON)

-- REVOKE USAGE ON SCHEMA v2 FROM apiuser;
-- DROP SCHEMA v2 CASCADE;
-- DROP ROLE apiuser;

0 comments on commit 440f7b7

Please sign in to comment.