Project

General

Profile

« Previous | Next » 

Revision 7336

schemas/vegbien.sql: taxonverbatim: Allow taxonlabel_id to be NULL when morphoname is provided

View differences:

schemas/vegbien.my.sql
1509 1509
CREATE TABLE taxonverbatim (
1510 1510
    taxonverbatim_id int(11) NOT NULL,
1511 1511
    source_id int(11) NOT NULL,
1512
    taxonlabel_id int(11) NOT NULL,
1512
    taxonlabel_id int(11),
1513 1513
    verbatimrank varchar(255),
1514 1514
    taxonomicname varchar(255),
1515 1515
    taxonname varchar(255),
schemas/vegbien.sql
2383 2383
CREATE TABLE taxonverbatim (
2384 2384
    taxonverbatim_id integer NOT NULL,
2385 2385
    source_id integer NOT NULL,
2386
    taxonlabel_id integer NOT NULL,
2386
    taxonlabel_id integer,
2387 2387
    verbatimrank text,
2388 2388
    taxonomicname text,
2389 2389
    taxonname text,
......
2394 2394
    morphospecies text,
2395 2395
    morphoname text,
2396 2396
    growthform growthform,
2397
    description text
2397
    description text,
2398
    CONSTRAINT taxonverbatim_required_key CHECK (((taxonlabel_id IS NOT NULL) OR (morphoname IS NOT NULL)))
2398 2399
);
2399 2400

  
2400 2401

  

Also available in: Unified diff