Project

General

Profile

« Previous | Next » 

Revision 6130

schemas/vegbien.sql: Removed no longer used table referenceparty

View differences:

vegbien.sql
3503 3503

  
3504 3504

  
3505 3505
--
3506
-- Name: referenceparty; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3507
--
3508

  
3509
CREATE TABLE referenceparty (
3510
    referenceparty_id integer NOT NULL,
3511
    type text,
3512
    positionname text,
3513
    salutation text,
3514
    givenname text,
3515
    surname text,
3516
    suffix text,
3517
    organizationname text,
3518
    currentparty_id integer,
3519
    accessioncode text
3520
);
3521

  
3522

  
3523
--
3524
-- Name: referenceparty_referenceparty_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3525
--
3526

  
3527
CREATE SEQUENCE referenceparty_referenceparty_id_seq
3528
    START WITH 1
3529
    INCREMENT BY 1
3530
    NO MINVALUE
3531
    NO MAXVALUE
3532
    CACHE 1;
3533

  
3534

  
3535
--
3536
-- Name: referenceparty_referenceparty_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3537
--
3538

  
3539
ALTER SEQUENCE referenceparty_referenceparty_id_seq OWNED BY referenceparty.referenceparty_id;
3540

  
3541

  
3542
--
3543
-- Name: referenceparty_referenceparty_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3544
--
3545

  
3546

  
3547

  
3548
--
3549 3506
-- Name: revision; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3550 3507
--
3551 3508

  
......
4627 4584

  
4628 4585

  
4629 4586
--
4630
-- Name: referenceparty_id; Type: DEFAULT; Schema: public; Owner: -
4631
--
4632

  
4633
ALTER TABLE referenceparty ALTER COLUMN referenceparty_id SET DEFAULT nextval('referenceparty_referenceparty_id_seq'::regclass);
4634

  
4635

  
4636
--
4637 4587
-- Name: revision_id; Type: DEFAULT; Schema: public; Owner: -
4638 4588
--
4639 4589

  
......
5049 4999

  
5050 5000

  
5051 5001
--
5052
-- Data for Name: referenceparty; Type: TABLE DATA; Schema: public; Owner: -
5053
--
5054

  
5055

  
5056

  
5057
--
5058 5002
-- Data for Name: revision; Type: TABLE DATA; Schema: public; Owner: -
5059 5003
--
5060 5004

  
......
5579 5523

  
5580 5524

  
5581 5525
--
5582
-- Name: referenceparty_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
5583
--
5584

  
5585
ALTER TABLE ONLY referenceparty
5586
    ADD CONSTRAINT referenceparty_pkey PRIMARY KEY (referenceparty_id);
5587

  
5588

  
5589
--
5590 5526
-- Name: revision_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
5591 5527
--
5592 5528

  
......
6097 6033

  
6098 6034

  
6099 6035
--
6100
-- Name: referenceparty_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6101
--
6102

  
6103
CREATE UNIQUE INDEX referenceparty_accessioncode_index ON referenceparty USING btree (accessioncode);
6104

  
6105

  
6106
--
6107 6036
-- Name: soiltaxon_accessioncode_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
6108 6037
--
6109 6038

  
......
7028 6957

  
7029 6958

  
7030 6959
--
7031
-- Name: referenceparty_currentparty_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
7032
--
7033

  
7034
ALTER TABLE ONLY referenceparty
7035
    ADD CONSTRAINT referenceparty_currentparty_id_fkey FOREIGN KEY (currentparty_id) REFERENCES referenceparty(referenceparty_id) ON UPDATE CASCADE ON DELETE CASCADE;
7036

  
7037

  
7038
--
7039 6960
-- Name: revision_previousrevision_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
7040 6961
--
7041 6962

  

Also available in: Unified diff