X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fdevel-notes;h=f4f6066788c045383e68aac313b237c156e65d85;hp=27335dd87c01e0c39ecd454655bfb7261ff838c1;hb=d66f27768708df0b8ce256e2d868ff4f7060ef3f;hpb=fceed60843f6a7c037b908eb529b542ad263c500 diff --git a/yarrg/devel-notes b/yarrg/devel-notes index 27335dd..f4f6066 100644 --- a/yarrg/devel-notes +++ b/yarrg/devel-notes @@ -1,3 +1,29 @@ + +removing an obsolete commodity: + + select * from (select * from sell union select * from buy) left outer join commods using (commodid) where commods.commodname = 'Black dye' limit 10; + +if that produces no output then: + + begin; + delete from commods where commodname like 'Black dye'; + select * from (select * from sell union select * from buy) left outer join commods using (commodid) where commods.commodname is null limit 10; + +and if that produces no output then: + commit; +otherwise + rollback; + +======================================= + +ceb's example route: + alpha,byrne,papaya,turtle,jorvik,luthien + +example mixed arbitrage/trade + xi,heph + +======================================== + To remedy bug fixed in 01c14767c024ac56686dbbfcd88d9f3a0b4b1574, did this: