Project

General

Profile

« Previous | Next » 

Revision 13575

inputs/.TNRS/schema.sql: made COMMENTs start on their own line, using the steps at wiki.vegpath.org/Postgres_queries#make-COMMENTs-start-on-their-own-line

View differences:

trunk/inputs/.TNRS/schema.sql
20 20
-- Name: SCHEMA "TNRS"; Type: COMMENT; Schema: -; Owner: -
21 21
--
22 22

  
23
COMMENT ON SCHEMA "TNRS" IS 'IMPORTANT: when changing this schema, you must also make the same changes on vegbiendev:
23
COMMENT ON SCHEMA "TNRS" IS '
24
IMPORTANT: when changing this schema, you must also make the same changes on vegbiendev:
24 25
on vegbiendev:
25 26
# back up existing TNRS schema (in case of an accidental incorrect change):
26 27
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s")
......
34 35
$ rm=1 inputs/.TNRS/schema.sql.run
35 36
# repeat until `svn di` shows no diff
36 37
# back up new TNRS schema:
37
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s")';
38
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s")
39
';
38 40

  
39 41

  
40 42
SET search_path = "TNRS", pg_catalog;
......
248 250
-- Name: FUNCTION tnrs_populate_fields(); Type: COMMENT; Schema: TNRS; Owner: -
249 251
--
250 252

  
251
COMMENT ON FUNCTION tnrs_populate_fields() IS 'IMPORTANT: when changing this function, you must regenerate the derived cols:
253
COMMENT ON FUNCTION tnrs_populate_fields() IS '
254
IMPORTANT: when changing this function, you must regenerate the derived cols:
252 255
UPDATE "TNRS".tnrs SET "Name_submitted" = "Name_submitted"
253 256
runtime: 30 min ("5564082 rows affected, 1918900 ms execution time")
254 257
VACUUM ANALYZE "TNRS".tnrs -- to remove previous rows
255
runtime: 1.5 min ("92633 ms")';
258
runtime: 1.5 min ("92633 ms")
259
';
256 260

  
257 261

  
258 262
SET default_tablespace = '';
......
311 315
-- Name: TABLE tnrs; Type: COMMENT; Schema: TNRS; Owner: -
312 316
--
313 317

  
314
COMMENT ON TABLE tnrs IS 'IMPORTANT: when changing this table''s schema, you may need to re-run TNRS:
315
$ inputs/.TNRS/data.sql.run refresh';
318
COMMENT ON TABLE tnrs IS '
319
IMPORTANT: when changing this table''s schema, you may need to re-run TNRS:
320
$ inputs/.TNRS/data.sql.run refresh
321
';
316 322

  
317 323

  
318 324
--
......
491 497
-- Name: TABLE batch_download_settings; Type: COMMENT; Schema: TNRS; Owner: -
492 498
--
493 499

  
494
COMMENT ON TABLE batch_download_settings IS 'stores data from http://tnrs.iplantcollaborative.org/TNRSapp.html > Submit List > results section > Download settings > settings.txt';
500
COMMENT ON TABLE batch_download_settings IS '
501
stores data from http://tnrs.iplantcollaborative.org/TNRSapp.html > Submit List > results section > Download settings > settings.txt
502
';
495 503

  
496 504

  
497 505
--
......
510 518
-- Name: TABLE client_version; Type: COMMENT; Schema: TNRS; Owner: -
511 519
--
512 520

  
513
COMMENT ON TABLE client_version IS 'contains svn revisions';
521
COMMENT ON TABLE client_version IS '
522
contains svn revisions
523
';
514 524

  
515 525

  
516 526
--
517 527
-- Name: COLUMN client_version.global_rev; Type: COMMENT; Schema: TNRS; Owner: -
518 528
--
519 529

  
520
COMMENT ON COLUMN client_version.global_rev IS 'from `svn info .` > Last Changed Rev';
530
COMMENT ON COLUMN client_version.global_rev IS '
531
from `svn info .` > Last Changed Rev
532
';
521 533

  
522 534

  
523 535
--
524 536
-- Name: COLUMN client_version."/lib/tnrs.py rev"; Type: COMMENT; Schema: TNRS; Owner: -
525 537
--
526 538

  
527
COMMENT ON COLUMN client_version."/lib/tnrs.py rev" IS 'from `svn info lib/tnrs.py` > Last Changed Rev';
539
COMMENT ON COLUMN client_version."/lib/tnrs.py rev" IS '
540
from `svn info lib/tnrs.py` > Last Changed Rev
541
';
528 542

  
529 543

  
530 544
--
531 545
-- Name: COLUMN client_version."/bin/tnrs_db rev"; Type: COMMENT; Schema: TNRS; Owner: -
532 546
--
533 547

  
534
COMMENT ON COLUMN client_version."/bin/tnrs_db rev" IS 'from `svn info bin/tnrs_db` > Last Changed Rev';
548
COMMENT ON COLUMN client_version."/bin/tnrs_db rev" IS '
549
from `svn info bin/tnrs_db` > Last Changed Rev
550
';
535 551

  
536 552

  
537 553
--
......
556 572
-- Name: VIEW "taxon_scrub.scrubbed_unique_taxon_name.*"; Type: COMMENT; Schema: TNRS; Owner: -
557 573
--
558 574

  
559
COMMENT ON VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" IS 'scrubbed_family: Name_matched_accepted_family was missing from the TNRS results at one point, so Family_matched is used as a workaround to populate this. the workaround is for *accepted names only*, as no opinion names do not have an Accepted_name_family to prepend to the scrubbed name to parse.';
575
COMMENT ON VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" IS '
576
scrubbed_family: Name_matched_accepted_family was missing from the TNRS results at one point, so Family_matched is used as a workaround to populate this. the workaround is for *accepted names only*, as no opinion names do not have an Accepted_name_family to prepend to the scrubbed name to parse.
577
';
560 578

  
561 579

  
562 580
--

Also available in: Unified diff