adding org_unit_setting code
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Jul 2005 17:29:11 +0000 (17:29 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Jul 2005 17:29:11 +0000 (17:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1577 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/actor.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/dbi.pm
Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm

index e4679cd..f7f317c 100644 (file)
@@ -54,6 +54,15 @@ __PACKAGE__->columns( Essential => qw/parent_ou ou_type mailing_address billing_
                                ill_address holds_address shortname name/);
 
 #-------------------------------------------------------------------------------
+package actor::org_unit_setting;
+use base qw/actor/;
+
+__PACKAGE__->table( 'actor_org_unit_setting' );
+__PACKAGE__->columns( Primary => qw/id/);
+__PACKAGE__->columns( Essential => qw/org_unit name value/);
+
+
+#-------------------------------------------------------------------------------
 package actor::stat_cat;
 use base qw/actor/;
 
index bc14bc1..8d36c58 100644 (file)
        actor::user->sequence( 'actor.usr_id_seq' );
 
        #---------------------------------------------------------------------
+       package actor::org_unit_setting;
+       
+       actor::org_unit_setting->table( 'actor.org_unit_setting' );
+       actor::org_unit_setting->sequence( 'actor.org_unit_setting_id_seq' );
+
+       #---------------------------------------------------------------------
        package actor::user_setting;
        
        actor::user_setting->table( 'actor.usr_setting' );
index 292c848..5478e2d 100644 (file)
@@ -74,6 +74,7 @@ sub _init {
                                                                                             settings           => 1,
                                                                                             addresses          => 1 } },
                'Fieldmapper::actor::user_setting'              => { hint => 'aus'    },
+               'Fieldmapper::actor::org_unit_setting'          => { hint => 'aous'    },
                'Fieldmapper::actor::user_address'              => { hint => 'aua'    },
                'Fieldmapper::actor::org_address'               => { hint => 'aoa'    },
                'Fieldmapper::actor::profile'                   => { hint => 'ap'    },