Project

General

Profile

« Previous | Next » 

Revision 6296

schemas/vegbien.sql: source: Added parent_id for nested sources, e.g. an article in a journal

View differences:

vegbien.my.sql
1191 1191

  
1192 1192
CREATE TABLE source (
1193 1193
    source_id int(11) NOT NULL,
1194
    parent_id int(11),
1194 1195
    shortname text,
1195 1196
    `fulltext` text,
1196 1197
    sourcetype text,
......
5981 5982

  
5982 5983

  
5983 5984
--
5985
-- Name: source_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5986
--
5987

  
5988
ALTER TABLE source
5989
    ADD CONSTRAINT source_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES source(source_id) ON UPDATE CASCADE ON DELETE CASCADE;
5990

  
5991

  
5992
--
5984 5993
-- Name: source_sourcejournal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
5985 5994
--
5986 5995

  

Also available in: Unified diff