Index: openacs-4/packages/acs-service-contract/sql/postgresql/upgrade/upgrade-5.3.1-5.4.0d1.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-service-contract/sql/postgresql/upgrade/upgrade-5.3.1-5.4.0d1.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-service-contract/sql/postgresql/upgrade/upgrade-5.3.1-5.4.0d1.sql	8 Jun 2007 17:44:17 -0000	1.1
+++ openacs-4/packages/acs-service-contract/sql/postgresql/upgrade/upgrade-5.3.1-5.4.0d1.sql	30 Mar 2013 17:40:53 -0000	1.2
@@ -15,17 +15,25 @@
 select define_function_args('acs_sc_contract__get_name','contract_id');
 
 -- acs_sc_contract__delete(varchar)
-select define_function_args('acs_sc_contract__delete','contract_name');
 
+-- old define_function_args('acs_sc_contract__delete','contract_name')
+-- new
+select define_function_args('acs_sc_contract__delete','contract_id');
+
+
 -- acs_sc_operation__new(varchar,varchar,text,boolean,integer,varchar,varchar)
 select define_function_args('acs_sc_operation__new','contract_name,operation_name,operation_desc,operation_iscachable_p;f,operation_nargs,operation_inputtype,operation_outputtype');
 
 -- acs_sc_operation__get_id(varchar,varchar)
 select define_function_args('acs_sc_operation__get_id','contract_name,operation_name');
 
 -- acs_sc_operation__delete(integer)
-select define_function_args('acs_sc_operation__delete','operation_id');
 
+-- old define_function_args('acs_sc_operation__delete','operation_id')
+-- new
+select define_function_args('acs_sc_operation__delete','contract_name,operation_name');
+
+
 -- acs_sc_impl__new(varchar,varchar,varchar,varchar)
 select define_function_args('acs_sc_impl__new','impl_contract_name,impl_name,impl_pretty_name,impl_owner_name');
 
@@ -45,11 +53,19 @@
 select define_function_args('acs_sc_impl_alias__delete','impl_contract_name,impl_name,impl_operation_name');
 
 -- acs_sc_binding__new(varchar,varchar)
-select define_function_args('acs_sc_binding__new','contract_name,impl_name');
 
+-- old define_function_args('acs_sc_binding__new','contract_name,impl_name')
+-- new
+select define_function_args('acs_sc_binding__new','contract_id,impl_id');
+
+
 -- acs_sc_binding__delete(varchar,varchar)
-select define_function_args('acs_sc_binding__delete','contract_name,impl_name');
 
+-- old define_function_args('acs_sc_binding__delete','contract_name,impl_name')
+-- new
+select define_function_args('acs_sc_binding__delete','contract_id,impl_id');
+
+
 -- acs_sc_binding__exists_p(varchar,varchar)
 select define_function_args('acs_sc_binding__exists_p','contract_name,impl_name');
 
@@ -65,8 +81,12 @@
 select define_function_args('acs_sc_msg_type__get_name','msg_type_id');
 
 -- acs_sc_msg_type__delete(varchar)
-select define_function_args('acs_sc_msg_type__delete','msg_type_name');
 
+-- old define_function_args('acs_sc_msg_type__delete','msg_type_name')
+-- new
+select define_function_args('acs_sc_msg_type__delete','msg_type_id');
+
+
 -- acs_sc_msg_type__new_element(varchar,varchar,varchar,boolean,integer)
 select define_function_args('acs_sc_msg_type__new_element','msg_type_name,element_name,element_msg_type_name,element_msg_type_isset_p;f,element_pos');
 
