From 7002af78bc3e683ff8ce18b39de6d7de484422bf Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 20 Dec 2006 09:49:08 +0000 Subject: add ability to disable package classes --- FS/FS/Schema.pm | 3 ++- FS/FS/pkg_class.pm | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'FS') 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 -- cgit v1.2.1