Revision 6443
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/.geoscrub/_MySQL/geoscrub.schema.sql.make | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
env server=nimoy schema=1 my2pg_export geoscrub geoscrub |
|
3 | 0 |
inputs/.geoscrub/_MySQL/geoscrub.schema.sql | ||
---|---|---|
1 |
-- MySQL dump 10.13 Distrib 5.5.24, for debian-linux-gnu (x86_64) |
|
2 |
-- |
|
3 |
-- Host: localhost Database: geoscrub |
|
4 |
-- ------------------------------------------------------ |
|
5 |
-- Server version 5.5.24-0ubuntu0.12.04.1 |
|
6 |
|
|
7 |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
8 |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
9 |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
10 |
/*!40101 SET NAMES latin1 */; |
|
11 |
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
12 |
/*!40103 SET TIME_ZONE='+00:00' */; |
|
13 |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
14 |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
15 |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */; |
|
16 |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
17 |
|
|
18 |
-- |
|
19 |
-- Table structure for table "geoscrub" |
|
20 |
-- |
|
21 |
|
|
22 |
DROP TABLE IF EXISTS "geoscrub"; |
|
23 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
24 |
/*!40101 SET character_set_client = utf8 */; |
|
25 |
CREATE TABLE "geoscrub" ( |
|
26 |
"geoscrubID" int(11) unsigned NOT NULL DEFAULT '0', |
|
27 |
"sourceTable" varchar(50) CHARACTER SET utf8 NOT NULL, |
|
28 |
"sourceID" int(11) unsigned DEFAULT NULL, |
|
29 |
"countryVerbatim" varchar(100) CHARACTER SET utf8 DEFAULT NULL, |
|
30 |
"countryID" int(11) unsigned DEFAULT NULL, |
|
31 |
"isInCountry" int(1) DEFAULT NULL, |
|
32 |
"distErrCountry" double DEFAULT NULL, |
|
33 |
"stateProvinceVerbatim" varchar(100) CHARACTER SET utf8 DEFAULT NULL, |
|
34 |
"stateProvinceID" int(11) unsigned DEFAULT NULL, |
|
35 |
"isInStateProvince" int(1) DEFAULT NULL, |
|
36 |
"distErrStateProvince" double DEFAULT NULL, |
|
37 |
"countyParishVerbatim" varchar(100) CHARACTER SET utf8 DEFAULT NULL, |
|
38 |
"countyParishID" int(11) unsigned DEFAULT NULL, |
|
39 |
"isInCountyParish" int(1) DEFAULT NULL, |
|
40 |
"distErrCountyParish" double DEFAULT NULL, |
|
41 |
"elevationVerbatim" varchar(50) CHARACTER SET utf8 DEFAULT NULL, |
|
42 |
"elevMaxVerbatim" varchar(50) CHARACTER SET utf8 DEFAULT NULL, |
|
43 |
"elevMinVerbatim" varchar(50) CHARACTER SET utf8 DEFAULT NULL, |
|
44 |
"latitudeDecimalVerbatim" decimal(10,5) DEFAULT NULL, |
|
45 |
"longitudeDecimalVerbatim" decimal(10,5) DEFAULT NULL, |
|
46 |
"isBadLatLong" int(1) DEFAULT NULL, |
|
47 |
"badLatLongReason" varchar(250) CHARACTER SET utf8 DEFAULT NULL, |
|
48 |
"latitudeDecimalCorrected" decimal(10,5) DEFAULT NULL, |
|
49 |
"longitudeDecimalCorrected" decimal(10,5) DEFAULT NULL, |
|
50 |
"latLongCorrectedRemarks" varchar(250) CHARACTER SET utf8 DEFAULT NULL, |
|
51 |
"localityVerbatim" varchar(1000) CHARACTER SET utf8 DEFAULT NULL, |
|
52 |
"isCultivated" int(1) unsigned DEFAULT NULL, |
|
53 |
"isCultivatedReason" varchar(255) DEFAULT NULL, |
|
54 |
"countryStd" varchar(150) DEFAULT NULL, |
|
55 |
"stateProvinceStd" varchar(150) DEFAULT NULL, |
|
56 |
"isNewWorld" int(1) DEFAULT NULL, |
|
57 |
KEY "geoscrubID_idx" ("geoscrubID"), |
|
58 |
KEY "sourceTable_idx" ("sourceTable"), |
|
59 |
KEY "sourceID_idx" ("sourceID"), |
|
60 |
KEY "Index_isCultivated" ("isCultivated"), |
|
61 |
KEY "Index_isCultivatedReason" ("isCultivatedReason"), |
|
62 |
KEY "countryStd" ("countryStd"), |
|
63 |
KEY "stateProvinceStd" ("stateProvinceStd"), |
|
64 |
KEY "isNewWorld" ("isNewWorld"), |
|
65 |
KEY "countryID" ("countryID"), |
|
66 |
KEY "stateProvinceID" ("stateProvinceID") |
|
67 |
); |
|
68 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
69 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
70 |
|
|
71 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
72 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
73 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
74 |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
75 |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
76 |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
77 |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
78 |
|
|
79 |
-- Dump completed on 2012-10-30 16:02:51 |
inputs/.geoscrub/_MySQL/geoscrub.data.sql.make | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
env server=nimoy data=1 my2pg_export geoscrub geoscrub |
|
3 | 0 |
inputs/.geoscrub/geoscrub.schema.~.changes.sql | ||
---|---|---|
1 |
ALTER TABLE geoscrub ADD PRIMARY KEY ("geoscrubID"); |
|
2 |
ALTER TABLE geoscrub ADD UNIQUE ("sourceID"); |
inputs/.geoscrub/geoscrub.schema.sql | ||
---|---|---|
1 |
SET standard_conforming_strings = off; |
|
2 |
-- MySQL dump 10.13 Distrib 5.5.24, for debian-linux-gnu (x86_64) |
|
3 |
-- |
|
4 |
-- Host: localhost Database: geoscrub |
|
5 |
-- ------------------------------------------------------ |
|
6 |
-- Server version 5.5.24-0ubuntu0.12.04.1 |
|
7 |
|
|
8 |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
9 |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
10 |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
11 |
SET NAMES 'latin1'; |
|
12 |
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|
13 |
/*!40103 SET TIME_ZONE='+00:00' */; |
|
14 |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|
15 |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|
16 |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,POSTGRESQL' */; |
|
17 |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|
18 |
|
|
19 |
-- |
|
20 |
-- Table structure for table "geoscrub" |
|
21 |
-- |
|
22 |
|
|
23 |
DROP TABLE IF EXISTS "geoscrub"; |
|
24 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
|
25 |
/*!40101 SET character_set_client = utf8 */; |
|
26 |
CREATE TABLE "geoscrub" ( |
|
27 |
"geoscrubID" integer NOT NULL DEFAULT '0', |
|
28 |
"sourceTable" varchar(50) NOT NULL, |
|
29 |
"sourceID" integer DEFAULT NULL, |
|
30 |
"countryVerbatim" varchar(100) DEFAULT NULL, |
|
31 |
"countryID" integer DEFAULT NULL, |
|
32 |
"isInCountry" integer DEFAULT NULL, |
|
33 |
"distErrCountry" double precision DEFAULT NULL, |
|
34 |
"stateProvinceVerbatim" varchar(100) DEFAULT NULL, |
|
35 |
"stateProvinceID" integer DEFAULT NULL, |
|
36 |
"isInStateProvince" integer DEFAULT NULL, |
|
37 |
"distErrStateProvince" double precision DEFAULT NULL, |
|
38 |
"countyParishVerbatim" varchar(100) DEFAULT NULL, |
|
39 |
"countyParishID" integer DEFAULT NULL, |
|
40 |
"isInCountyParish" integer DEFAULT NULL, |
|
41 |
"distErrCountyParish" double precision DEFAULT NULL, |
|
42 |
"elevationVerbatim" varchar(50) DEFAULT NULL, |
|
43 |
"elevMaxVerbatim" varchar(50) DEFAULT NULL, |
|
44 |
"elevMinVerbatim" varchar(50) DEFAULT NULL, |
|
45 |
"latitudeDecimalVerbatim" decimal(10,5) DEFAULT NULL, |
|
46 |
"longitudeDecimalVerbatim" decimal(10,5) DEFAULT NULL, |
|
47 |
"isBadLatLong" integer DEFAULT NULL, |
|
48 |
"badLatLongReason" varchar(250) DEFAULT NULL, |
|
49 |
"latitudeDecimalCorrected" decimal(10,5) DEFAULT NULL, |
|
50 |
"longitudeDecimalCorrected" decimal(10,5) DEFAULT NULL, |
|
51 |
"latLongCorrectedRemarks" varchar(250) DEFAULT NULL, |
|
52 |
"localityVerbatim" varchar(1000) DEFAULT NULL, |
|
53 |
"isCultivated" integer DEFAULT NULL, |
|
54 |
"isCultivatedReason" varchar(255) DEFAULT NULL, |
|
55 |
"countryStd" varchar(150) DEFAULT NULL, |
|
56 |
"stateProvinceStd" varchar(150) DEFAULT NULL, |
|
57 |
"isNewWorld" integer DEFAULT NULL, |
|
58 |
"geoscrubID_idx_index" boolean, |
|
59 |
"sourceTable_idx_index" boolean, |
|
60 |
"sourceID_idx_index" boolean, |
|
61 |
"Index_isCultivated_index" boolean, |
|
62 |
"Index_isCultivatedReason_index" boolean, |
|
63 |
"countryStd_index" boolean, |
|
64 |
"stateProvinceStd_index" boolean, |
|
65 |
"isNewWorld_index" boolean, |
|
66 |
"countryID_index" boolean, |
|
67 |
"stateProvinceID_index" boolean |
|
68 |
); |
|
69 |
/*!40101 SET character_set_client = @saved_cs_client */; |
|
70 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|
71 |
|
|
72 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|
73 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|
74 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|
75 |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
76 |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
77 |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
78 |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|
79 |
|
|
80 |
-- Dump completed on 2012-10-30 16:02:51 |
Also available in: Unified diff
Removed no longer used geoscrub.*.sql. Use geoscrub_output instead.