> I'm not sure how to add constraints to already existing tables, so you
> might wanna do this in a test table, move your data over, then rename
> tables to swap in the new table.
ALTER TABLE ... ADD CONSTRAINT
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.