summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
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 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