summaryrefslogtreecommitdiff
path: root/FS/FS/Schema.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-06-30 13:39:10 -0700
committerIvan Kohler <ivan@freeside.biz>2017-06-30 13:39:10 -0700
commitef710ebf571104b60d855f87d73732b600ebe455 (patch)
tree84f29abcb3e10c0de2f8ff62e7c7dc0d60b2d35c /FS/FS/Schema.pm
parentcb58923b11e5eab5e5212972da7a67beb018b905 (diff)
prefixes should be unique
Diffstat (limited to 'FS/FS/Schema.pm')
-rw-r--r--FS/FS/Schema.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index e96e883..d7c7452 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -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' ],