-- Drop the foreign key from pivot_layouts.source_name so stack view names can also -- be used as layout keys (stacks are not rows in the sources table). ALTER TABLE dataflow.pivot_layouts DROP CONSTRAINT pivot_layouts_source_name_fkey;