Notes2/sql/00005.sql

3 lines
191 B
MySQL
Raw Normal View History

2024-11-29 09:15:42 +01:00
ALTER TABLE public.file ADD node_id int4 NOT NULL;
ALTER TABLE public.file ADD CONSTRAINT file_node_fk FOREIGN KEY (node_id) REFERENCES public.node(id) ON DELETE RESTRICT ON UPDATE RESTRICT;