Revision 13430
Added by Aaron Marcuse-Kubitza almost 11 years ago
vegbien.sql | ||
---|---|---|
17074 | 17074 |
|
17075 | 17075 |
|
17076 | 17076 |
-- |
17077 |
-- Name: Source.errors; Type: TABLE; Schema: TNRS; Owner: -; Tablespace: |
|
17078 |
-- |
|
17079 |
|
|
17080 |
CREATE TABLE "Source.errors" ( |
|
17081 |
"column" text, |
|
17082 |
value text, |
|
17083 |
error_code character varying(5) NOT NULL, |
|
17084 |
error text NOT NULL |
|
17085 |
); |
|
17086 |
|
|
17087 |
|
|
17088 |
-- |
|
17077 | 17089 |
-- Name: ValidMatchedTaxon; Type: VIEW; Schema: TNRS; Owner: - |
17078 | 17090 |
-- |
17079 | 17091 |
|
... | ... | |
17283 | 17295 |
SET search_path = geoscrub, pg_catalog; |
17284 | 17296 |
|
17285 | 17297 |
-- |
17298 |
-- Name: Source.errors; Type: TABLE; Schema: geoscrub; Owner: -; Tablespace: |
|
17299 |
-- |
|
17300 |
|
|
17301 |
CREATE TABLE "Source.errors" ( |
|
17302 |
"column" text, |
|
17303 |
value text, |
|
17304 |
error_code character varying(5) NOT NULL, |
|
17305 |
error text NOT NULL |
|
17306 |
); |
|
17307 |
|
|
17308 |
|
|
17309 |
-- |
|
17286 | 17310 |
-- Name: county_centroids; Type: TABLE; Schema: geoscrub; Owner: -; Tablespace: |
17287 | 17311 |
-- |
17288 | 17312 |
|
... | ... | |
17395 | 17419 |
SET search_path = "TNRS", pg_catalog; |
17396 | 17420 |
|
17397 | 17421 |
-- |
17422 |
-- Name: Source.errors_coalesce_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
|
17423 |
-- |
|
17424 |
|
|
17425 |
CREATE INDEX "Source.errors_coalesce_idx" ON "Source.errors" USING btree ((COALESCE("column", '\N'::text))); |
|
17426 |
|
|
17427 |
|
|
17428 |
-- |
|
17429 |
-- Name: Source.errors_coalesce_idx1; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
|
17430 |
-- |
|
17431 |
|
|
17432 |
CREATE INDEX "Source.errors_coalesce_idx1" ON "Source.errors" USING btree ((COALESCE(value, '\N'::text))); |
|
17433 |
|
|
17434 |
|
|
17435 |
-- |
|
17436 |
-- Name: Source.errors_coalesce_md5_error_code_md51_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
|
17437 |
-- |
|
17438 |
|
|
17439 |
CREATE UNIQUE INDEX "Source.errors_coalesce_md5_error_code_md51_idx" ON "Source.errors" USING btree ((COALESCE("column", '\N'::text)), md5(value), error_code, md5(error)); |
|
17440 |
|
|
17441 |
|
|
17442 |
-- |
|
17443 |
-- Name: Source.errors_error_code_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
|
17444 |
-- |
|
17445 |
|
|
17446 |
CREATE INDEX "Source.errors_error_code_idx" ON "Source.errors" USING btree (error_code); |
|
17447 |
|
|
17448 |
|
|
17449 |
-- |
|
17450 |
-- Name: Source.errors_error_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
|
17451 |
-- |
|
17452 |
|
|
17453 |
CREATE INDEX "Source.errors_error_idx" ON "Source.errors" USING btree (error); |
|
17454 |
|
|
17455 |
|
|
17456 |
-- |
|
17398 | 17457 |
-- Name: batch_client_version_idx; Type: INDEX; Schema: TNRS; Owner: -; Tablespace: |
17399 | 17458 |
-- |
17400 | 17459 |
|
... | ... | |
17411 | 17470 |
SET search_path = geoscrub, pg_catalog; |
17412 | 17471 |
|
17413 | 17472 |
-- |
17473 |
-- Name: Source.errors_coalesce_idx; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
|
17474 |
-- |
|
17475 |
|
|
17476 |
CREATE INDEX "Source.errors_coalesce_idx" ON "Source.errors" USING btree ((COALESCE("column", '\N'::text))); |
|
17477 |
|
|
17478 |
|
|
17479 |
-- |
|
17480 |
-- Name: Source.errors_coalesce_idx1; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
|
17481 |
-- |
|
17482 |
|
|
17483 |
CREATE INDEX "Source.errors_coalesce_idx1" ON "Source.errors" USING btree ((COALESCE(value, '\N'::text))); |
|
17484 |
|
|
17485 |
|
|
17486 |
-- |
|
17487 |
-- Name: Source.errors_coalesce_md5_error_code_md51_idx; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
|
17488 |
-- |
|
17489 |
|
|
17490 |
CREATE UNIQUE INDEX "Source.errors_coalesce_md5_error_code_md51_idx" ON "Source.errors" USING btree ((COALESCE("column", '\N'::text)), md5(value), error_code, md5(error)); |
|
17491 |
|
|
17492 |
|
|
17493 |
-- |
|
17494 |
-- Name: Source.errors_error_code_idx; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
|
17495 |
-- |
|
17496 |
|
|
17497 |
CREATE INDEX "Source.errors_error_code_idx" ON "Source.errors" USING btree (error_code); |
|
17498 |
|
|
17499 |
|
|
17500 |
-- |
|
17501 |
-- Name: Source.errors_error_idx; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
|
17502 |
-- |
|
17503 |
|
|
17504 |
CREATE INDEX "Source.errors_error_idx" ON "Source.errors" USING btree (error); |
|
17505 |
|
|
17506 |
|
|
17507 |
-- |
|
17414 | 17508 |
-- Name: geoscrub_output__unique; Type: INDEX; Schema: geoscrub; Owner: -; Tablespace: |
17415 | 17509 |
-- |
17416 | 17510 |
|
Also available in: Unified diff
schemas/vegbien.sql: synced to DB, which adds Source.errors table indexes added in the import