herding elephants: add primary keys to *all* tables for slony
[freeside.git] / FS / FS / part_svc_router.pm
index 0b23ab5..df04cc9 100755 (executable)
@@ -13,7 +13,8 @@ sub table { 'part_svc_router'; }
 sub check {
   my $self = shift;
   my $error =
-    $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart')
+       $self->ut_numbern('svcrouternum')
+    || $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart')
     || $self->ut_foreign_key('routernum', 'router', 'routernum');
   return $error if $error;
   ''; #no error