Skip to content

Commit 4bf5147

Browse files
authored
Merge pull request #702 from AtlasOfLivingAustralia/lists4.4
lists 4.4.0 database update
2 parents 8d6cb98 + 4213353 commit 4bf5147

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#Create a matched_species table
2+
CREATE TABLE `matched_species` (
3+
`id` int NOT NULL AUTO_INCREMENT,
4+
`taxon_concept_id` varchar(255) DEFAULT NULL,
5+
`scientific_name` varchar(255) NOT NULL,
6+
`scientific_name_authorship` varchar(255) DEFAULT NULL,
7+
`vernacular_name` varchar(255) DEFAULT NULL,
8+
`kingdom` varchar(255) DEFAULT NULL,
9+
`phylum` varchar(255) DEFAULT NULL,
10+
`taxon_class` varchar(255) DEFAULT NULL,
11+
`taxon_order` varchar(255) DEFAULT NULL,
12+
`family` varchar(255) DEFAULT NULL,
13+
`genus` varchar(255) DEFAULT NULL,
14+
`taxon_rank` varchar(255) DEFAULT NULL,
15+
`version` BIGINT NOT NULL DEFAULT 0,
16+
PRIMARY KEY (`id`,`scientific_name`),
17+
UNIQUE KEY `id_UNIQUE` (`id`)
18+
)
19+
20+
# Link the new created matchedSpecies table to speciesListItem table:
21+
ALTER TABLE `specieslist`.`species_list_item`
22+
ADD COLUMN `matched_species_id` INT DEFAULT NULL

0 commit comments

Comments
 (0)