Project

General

Profile

« Previous | Next » 

Revision 4489

schemas/vegbien.sql: project: Don't require projectname to be specified when sourceaccessioncode is provided

View differences:

inputs/SALVIAS/plotMetadata/test.xml.ref
280 280
        <slopegradient>$slope_gradient</slopegradient>
281 281
    </location>
282 282
</VegBIEN>
283
Inserted 22 new rows into database
283
Inserted 23 new rows into database
schemas/vegbien.my.sql
1794 1794
    project_id int(11) NOT NULL,
1795 1795
    datasource_id int(11) NOT NULL,
1796 1796
    sourceaccessioncode text,
1797
    projectname text NOT NULL,
1797
    projectname text,
1798 1798
    projectdescription text,
1799 1799
    startdate timestamp NULL,
1800 1800
    stopdate timestamp NULL,
schemas/vegbien.sql
2243 2243
    project_id integer NOT NULL,
2244 2244
    datasource_id integer NOT NULL,
2245 2245
    sourceaccessioncode text,
2246
    projectname text NOT NULL,
2246
    projectname text,
2247 2247
    projectdescription text,
2248 2248
    startdate timestamp with time zone,
2249 2249
    stopdate timestamp with time zone,
2250 2250
    d_obscount integer,
2251 2251
    d_lastlocationaddeddate timestamp with time zone,
2252
    accessioncode text
2252
    accessioncode text,
2253
    CONSTRAINT project_required_key CHECK (((sourceaccessioncode IS NOT NULL) OR (projectname IS NOT NULL)))
2253 2254
);
2254 2255

  
2255 2256

  

Also available in: Unified diff