-- 1523368332 UP link-invoices-to-vendor
delete from invoices;

alter table invoices drop column vendor;
alter table invoices add column vendor_id integer;
alter table invoices add constraint fk_invoices__vendor_id foreign key (vendor_id) references vendors(id);
