diff options
author | Oliver Tappe | 2008-02-09 21:17:10 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-02-09 21:17:10 +0100 |
commit | 55eba91c566d566b07fccb782ca35e0a829619d5 (patch) | |
tree | 04e04c2a7bfbc644ea597415438e8899de18cafa /config-db/OpenSLX/MetaDB/DBI.pm | |
parent | * cmdline options are now collected in a hash instead of individual variables, (diff) | |
download | core-55eba91c566d566b07fccb782ca35e0a829619d5.tar.gz core-55eba91c566d566b07fccb782ca35e0a829619d5.tar.xz core-55eba91c566d566b07fccb782ca35e0a829619d5.zip |
* dropped attribute ramfs_screen as it is no longer needed (splashy does
not need to be given the screen-size) - updating schema version to 0.25
* little code simplification in DBSchema.pm
* removed ramfs_screen from all tests
* added method removeAttributeByName() to MetaDB in order to be able to
remove attributes from the DB in a simple manner
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1528 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/OpenSLX/MetaDB/DBI.pm')
-rw-r--r-- | config-db/OpenSLX/MetaDB/DBI.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config-db/OpenSLX/MetaDB/DBI.pm b/config-db/OpenSLX/MetaDB/DBI.pm index 2d6b5a55..70bc504f 100644 --- a/config-db/OpenSLX/MetaDB/DBI.pm +++ b/config-db/OpenSLX/MetaDB/DBI.pm @@ -878,6 +878,16 @@ sub addClient return @clientIDs; } +sub removeAttributeByName +{ + my $self = shift; + my $attrName = shift; + + return $self->_doDelete('system_attr', [ $attrName ], 'name') + && $self->_doDelete('client_attr', [ $attrName ], 'name') + && $self->_doDelete('group_attr', [ $attrName ], 'name'); +} + sub removeClient { my $self = shift; |