From 46d58d8dfb067df2af55951030a00a61fc061fe6 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 24 Apr 2015 07:46:01 -0800 Subject: [PATCH] Move etymology to species --- migrations/00003_AddSpecies_up.sql | 1 + migrations/00004_AddStrain_up.sql | 1 - strains.go | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/migrations/00003_AddSpecies_up.sql b/migrations/00003_AddSpecies_up.sql index b0f1404..4009e77 100644 --- a/migrations/00003_AddSpecies_up.sql +++ b/migrations/00003_AddSpecies_up.sql @@ -7,6 +7,7 @@ CREATE TABLE species ( species_name TEXT NOT NULL, type_species BOOLEAN NULL, subspecies_species_id BIGINT NULL, + etymology TEXT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL, updated_at TIMESTAMP WITH TIME ZONE NOT NULL, diff --git a/migrations/00004_AddStrain_up.sql b/migrations/00004_AddStrain_up.sql index 68ef020..aac7e1e 100644 --- a/migrations/00004_AddStrain_up.sql +++ b/migrations/00004_AddStrain_up.sql @@ -6,7 +6,6 @@ CREATE TABLE strains ( species_id BIGINT NOT NULL, strain_name TEXT NOT NULL, type_strain BOOLEAN NOT NULL, - etymology TEXT NULL, accession_banks TEXT NULL, genbank_embl_ddb TEXT NULL, isolated_from TEXT NULL, diff --git a/strains.go b/strains.go index e21151c..8c715f6 100644 --- a/strains.go +++ b/strains.go @@ -25,7 +25,6 @@ type StrainBase struct { SpeciesId int64 `db:"species_id" json:"-"` StrainName string `db:"strain_name" json:"strainName"` TypeStrain bool `db:"type_strain" json:"typeStrain"` - Etymology NullString `db:"etymology" json:"etymology"` AccessionBanks string `db:"accession_banks" json:"accessionBanks"` GenbankEmblDdb NullString `db:"genbank_embl_ddb" json:"genbankEmblDdb"` IsolatedFrom NullString `db:"isolated_from" json:"isolatedFrom"`