text: -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
  -- Copyright [2016-2019] EMBL-European Bioinformatics Institute
  -- 
  -- Licensed under the Apache License, Version 2.0 (the "License");
  -- you may not use this file except in compliance with the License.
  -- You may obtain a copy of the License at
  -- 
  --      http://www.apache.org/licenses/LICENSE-2.0
  -- 
  -- Unless required by applicable law or agreed to in writing, software
  -- distributed under the License is distributed on an "AS IS" BASIS,
  -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -- See the License for the specific language governing permissions and
  -- limitations under the License.
  
  
  # patch_51_52_b.sql
  #
  # title: add seq_region table
  #
  # description:
  # add toplevel seq_region table so people know which seq_region_id is corresponding to what chromosome name
  # also to make sure seq_region_id in variation database is in sync with core db
  
  CREATE TABLE seq_region (
  
    seq_region_id               INT(10) UNSIGNED NOT NULL,
    name                        VARCHAR(40) NOT NULL,
  
    PRIMARY KEY (seq_region_id),
    UNIQUE KEY name_idx (name)
  
  ) ;
  
  INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL,'patch', 'patch_51_52_b.sql|add seq_region table');
  