prefixes should be unique
authorIvan Kohler <ivan@freeside.biz>
Fri, 30 Jun 2017 20:39:10 +0000 (13:39 -0700)
committerIvan Kohler <ivan@freeside.biz>
Fri, 30 Jun 2017 20:39:10 +0000 (13:39 -0700)
FS/FS/Schema.pm

index e96e883..d7c7452 100644 (file)
@@ -5231,7 +5231,7 @@ sub tables_hashref {
         'ocn',         'char',    'NULL',       4, '', '', 
       ],
       'primary_key'  => 'prefixnum',
-      'unique'       => [],
+      'unique'       => [ [ 'countrycode', 'npa', 'nxx' ] ],
       'index'        => [ [ 'countrycode' ], [ 'npa' ], [ 'regionnum' ] ],
       'foreign_keys' => [
                           { columns    => [ 'regionnum' ],