Re: Modifying a foreign key constraint?

Поиск
Список
Период
Сортировка
Искать

Re: Modifying a foreign key constraint?

От:
Marc Branchaud <marcnarc@x2omedia.com>
Дата:
Whoops,

> ALTER TABLE foo ADD FOREIGN KEY (foo_bar_id_fkey) REFERENCES bar(id) ON 
> DELETE CASCADE;

should be

ALTER TABLE foo ADD FOREIGN KEY (bar_id) REFERENCES bar(id) ON DELETE 
CASCADE;

Sorry!

		Marc

FAQ