Issue #23507:add cascade to column drop
authorgaryhgohoos <gary@xtuple.com>
Thu, 4 Sep 2014 15:20:56 +0000 (11:20 -0400)
committergaryhgohoos <gary@xtuple.com>
Thu, 4 Sep 2014 15:20:56 +0000 (11:20 -0400)
foundation-database/public/tables/itemsite.sql

index 6987426..5c5f7c4 100644 (file)
@@ -3,6 +3,6 @@ do $$
 begin
 if fetchMetricText('ServerVersion') < '4.7.0' then
   update itemsite set itemsite_qtyonhand=(itemsite_qtyonhand + itemsite_nnqoh);
-  alter table itemsite drop column itemsite_nnqoh;
+  alter table itemsite drop column itemsite_nnqoh cascade;
 end if;
 end$$;
\ No newline at end of file