X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSchema.pm;h=40248ddfc18e8d13e9c3739f22ab82ad7f39a8f4;hb=8fdc0ea36474cfb3d1389f41691c14598559cbe7;hp=eea43f00f035d834e38bc0accbd09f0a9de2ce0a;hpb=c6b180c6a3dcd014f781215395bd361f30eae9ed;p=freeside.git diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index eea43f00f..40248ddfc 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -6640,13 +6640,23 @@ sub tables_hashref { table => 'export_batch', references => [ 'batchnum' ] }, - { columns => [ 'svcnum' ], - table => 'cust_svc', - references => [ 'svcnum' ] - }, ], }, + # lookup table for states, similar to msa and lata + 'state' => { + 'columns' => [ + 'statenum', 'int', '', '', '', '', + 'country', 'char', '', 2, '', '', + 'state', 'char', '', $char_d, '', '', + 'fips', 'char', '', 3, '', '', + ], + 'primary_key' => 'statenum', + 'unique' => [ [ 'country', 'state' ], ], + 'index' => [], + }, + + # name type nullability length default local #'new_table' => {