} );
if ( $column->type =~ /^(\w*)SERIAL$/i ) {
- $column->type('int');
+ $column->type(uc($1).'INT');
$column->null('NULL');
}
#$column->default('')
'custnum', 'int', '', '', '', '',
'_date', @date_type, '', '',
'otaker', 'varchar', '', 32, '', '',
- 'filename', 'varchar', '', 32, '', '',
- 'mime_type', 'varchar', '', 32, '', '',
+ 'filename', 'varchar', '', 255, '', '',
+ 'mime_type', 'varchar', '', $char_d, '', '',
+ 'title', 'varchar', 'NULL', $char_d, '', '',
'body', 'blob', 'NULL', '', '', '',
'disabled', @date_type, '', '',
],
],
'primary_key' => 'prefixnum',
'unique' => [],
- 'index' => [ [ 'countrycode' ], [ 'regionnum' ] ],
+ 'index' => [ [ 'countrycode' ], [ 'npa' ], [ 'regionnum' ] ],
},
'usage_class' => {
[ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ],
[ 'accountcode' ], [ 'carrierid' ], [ 'cdrid' ],
[ 'freesidestatus' ], [ 'freesiderewritestatus' ],
- [ 'cdrbatch' ],
+ [ 'cdrbatch' ], [ 'cdrbatchnum' ],
],
},
'unique' => [ [ 'pkgnum', 'refnum' ] ],
'index' => [ [ 'pkgnum' ], [ 'refnum' ] ],
},
+
+ 'svc_pbx' => {
+ 'columns' => [
+ 'svcnum', 'int', '', '', '', '',
+ 'id', 'int', 'NULL', '', '', '',
+ 'title', 'varchar', 'NULL', $char_d, '', '',
+ 'max_extensions', 'int', 'NULL', '', '', '',
+ ],
+ 'primary_key' => 'svcnum',
+ 'unique' => [],
+ 'index' => [ [ 'id' ] ],
+ },
+
+
# name type nullability length default local
#'new_table' => {