summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2006-12-20 09:49:08 +0000
committerivan <ivan>2006-12-20 09:49:08 +0000
commit7002af78bc3e683ff8ce18b39de6d7de484422bf (patch)
tree03f45fbc10293e939d414c861216d5dc2ff298d4 /FS
parent7b5280c065aaa4887ce4e36fb4be7a80a74a8392 (diff)
add ability to disable package classes
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Schema.pm3
-rw-r--r--FS/FS/pkg_class.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 691edd7..2f28994 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 0fa6e48..bab6e5e 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