Skip to content

Commit

Permalink
Simple package drop now works for PG and probably Oracle, too. The drop
Browse files Browse the repository at this point in the history
scripts had never been tested - they misspelled two service contract
operations (quite bad seeing as there are *only* two sc operations)
  • Loading branch information
Don Baccus committed Dec 6, 2009
1 parent d3e66cc commit 3256bf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sql/oracle/rss-generation-sc-drop.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
declare
begin

acs_sc_operation.del(contract_name => 'RssGenerationSubscriber',operation_name => 'Datasource');
acs_sc_operation.del(contract_name => 'RssGenerationSubscriber',operation_name => 'datasource');

acs_sc_msg_type.del(msg_type_name => 'RssGenerationSubscriber.Datasource.InputType');
acs_sc_msg_type.del(msg_type_name => 'RssGenerationSubscriber.Datasource.OutputType');

acs_sc_operation.del(contract_name => 'RssGenerationSubscriber',operation_name => 'LastUpdated');
acs_sc_operation.del(contract_name => 'RssGenerationSubscriber',operation_name => 'lastUpdated');

acs_sc_msg_type.del(msg_type_name => 'RssGenerationSubscriber.LastUpdated.InputType');
acs_sc_msg_type.del(msg_type_name => 'RssGenerationSubscriber.LastUpdated.OutputType');
Expand Down
9 changes: 4 additions & 5 deletions sql/postgresql/rss-generation-sc-drop.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
delete from acs_sc_bindings
where contract_id = acs_sc_contract__get_id('RssGenerationSubscriber');

select acs_sc_operation__delete ('RssGenerationSubscriber','Datasource');
select acs_sc_operation__delete ('RssGenerationSubscriber','datasource');

select acs_sc_msg_type__delete('RssGenerationSubscriber.Datasource.InputType');
select acs_sc_msg_type__delete('RssGenerationSubscriber.Datasource.OutputType');

select acs_sc_operation__delete ('RssGenerationSubscriber','LastUpdated');
select acs_sc_operation__delete ('RssGenerationSubscriber','lastUpdated');

select acs_sc_msg_type__delete('RssGenerationSubscriber.LastUpdated.InputType');
select acs_sc_msg_type__delete('RssGenerationSubscriber.LastUpdated.OutputType');
select acs_sc_msg_type__delete('RssGenerationSubscriber.Datasource.InputType');
select acs_sc_msg_type__delete('RssGenerationSubscriber.Datasource.OutputType');

select acs_sc_contract__delete('RssGenerationSubscriber');

0 comments on commit 3256bf1

Please sign in to comment.