[freeside-commits] freeside/FS/FS Schema.pm,1.112,1.113

Ivan,,, ivan at wavetail.420.am
Tue Nov 18 17:24:26 PST 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19158

Modified Files:
	Schema.pm 
Log Message:
fix phone_avail.availnum to be a proper primary key, fix agent.agent_custnum unique index causing it to get a value filled in by Record.pm

Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- Schema.pm	19 Oct 2008 00:38:08 -0000	1.112
+++ Schema.pm	19 Nov 2008 01:24:24 -0000	1.113
@@ -342,8 +342,11 @@
         'prog',                     @perl_type, '', '', #deprecated (never used)
       ],
       'primary_key' => 'agentnum',
-      'unique' => [ [ 'agent_custnum' ] ], #one agent per customer?
-      'index' => [ ['typenum'], ['disabled'] ],
+      #'unique' => [ [ 'agent_custnum' ] ], #one agent per customer?
+                                            #insert is giving it a value, tho..
+      #'index' => [ ['typenum'], ['disabled'] ],
+      'unique' => [],
+      'index' => [ ['typenum'], ['disabled'], ['agent_custnum'] ],
     },
 
     'agent_type' => {
@@ -2116,7 +2119,7 @@
 
     'phone_avail' => {
       'columns' => [
-        'availnum',    'int',      '', '', '', '', 
+        'availnum',    'serial',   '', '', '', '', 
         'exportnum',   'int',      '', '', '', '', 
         'countrycode', 'varchar',  '',  3, '', '', 
         'state',       'char', 'NULL',  2, '', '', 



More information about the freeside-commits mailing list