summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-06-30 13:39:11 -0700
committerIvan Kohler <ivan@freeside.biz>2017-06-30 13:39:11 -0700
commitfe99f2ab76c6f941e0bad94bc50a41933bf59f3f (patch)
tree4bf90990e7a3e3c5f9bc2c6a1d7ee7bb69309674 /FS
parentea5b53b9d78b3c3dbff5fb81aa2a16ba88d19d2f (diff)
prefixes should be unique
Diffstat (limited to 'FS')
-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 34be1a0..b3ef409 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -5204,7 +5204,7 @@ sub tables_hashref {
'ocn', 'char', 'NULL', 4, '', '',
],
'primary_key' => 'prefixnum',
- 'unique' => [],
+ 'unique' => [ [ 'countrycode', 'npa', 'nxx' ] ],
'index' => [ [ 'countrycode' ], [ 'npa' ], [ 'regionnum' ] ],
'foreign_keys' => [
{ columns => [ 'regionnum' ],