diff options
author | ivan <ivan> | 2006-12-20 09:49:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-20 09:49:08 +0000 |
commit | 7002af78bc3e683ff8ce18b39de6d7de484422bf (patch) | |
tree | 03f45fbc10293e939d414c861216d5dc2ff298d4 /FS | |
parent | 7b5280c065aaa4887ce4e36fb4be7a80a74a8392 (diff) |
add ability to disable package classes
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Schema.pm | 3 | ||||
-rw-r--r-- | FS/FS/pkg_class.pm | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 691edd7a7..2f289941d 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -1388,10 +1388,11 @@ sub tables_hashref { 'columns' => [ 'classnum', 'serial', '', '', '', '', 'classname', 'varchar', '', $char_d, '', '', + 'disabled', 'char', 'NULL', 1, '', '', ], 'primary_key' => 'classnum', 'unique' => [], - 'index' => [], + 'index' => [ ['disabled'] ], }, 'cdr' => { diff --git a/FS/FS/pkg_class.pm b/FS/FS/pkg_class.pm index 0fa6e4810..bab6e5e56 100644 --- a/FS/FS/pkg_class.pm +++ b/FS/FS/pkg_class.pm @@ -38,6 +38,8 @@ from FS::Record. The following fields are currently supported: =item classname - Text name of this package class +=item disabled - Disabled flag, empty or 'Y' + =back =head1 METHODS |