summaryrefslogtreecommitdiffstats
path: root/config-db/OpenSLX/MetaDB
Commit message (Collapse)AuthorAgeFilesLines
* change dir structureSebastian Schmelzer2010-09-024-3069/+0Star
|
* unicode deprecated, now sqlite_unicode is usedMichael Janczyk2010-05-181-1/+1
|
* * removed debug-outputOliver Tappe2009-06-041-1/+0Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2931 95ad53e4-c205-0410-b2fa-d234c58c8868
* Fixed two more problems exposed by mysql:Oliver Tappe2008-07-172-4/+8
| | | | | | | | * non-numeric IDs (like in the global_info table) were not handled properly * mysql needs to auto-reconnect to bypass problems related to forking while database connections are kept open git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1934 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed problem a least one database server (mysql) not being able to startOliver Tappe2008-07-171-5/+18
| | | | | | with an auto-increment value of 0 (for "<<<default>>>" entries) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1932 95ad53e4-c205-0410-b2fa-d234c58c8868
* Implemented a better algorithm for keeping the plugins and the referencesOliver Tappe2008-06-031-0/+23
| | | | | | | | | | | to them (and their attributes) in the DB in sync: * The DB now keeps a hash-value for the list of known plugins and their attributes and checks this value against the current one on every connect. If the values do not match, the DB is brought up-to-date automatically (i.e. the attributes are synchronized with the systems, clients and groups). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1837 95ad53e4-c205-0410-b2fa-d234c58c8868
* * refactored code for synchronization of attributes (moved from DBSchema to ↵Oliver Tappe2008-05-271-27/+38
| | | | | | | | | | | | ConfigDB) * When doing synchronization of attributes during a schema update, we now look for any stale attributes in system_attr, client_attr, group_attr or installed_plugin_attr and remove all those stale attributes automatically. Additionally, non-existent plugins that are still installed in a vendorOS are removed from that, too. * Updated DB-Schema to 0.31 in order to trigger this automatic cleaning process git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1805 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug that would not allow setting an empty attribute to '0'Oliver Tappe2008-05-251-1/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1801 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug introduced recently that would cause attributes of default system toOliver Tappe2008-05-241-1/+3
| | | | | | | never be removed (which in turn messes up the automatic synchronization of attributes into the default system) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1787 95ad53e4-c205-0410-b2fa-d234c58c8868
* * optimized the methods that set the attributes of a client/group/system toOliver Tappe2008-05-201-46/+114
| | | | | | | only execute required changes (instead of deleting all and then re-adding them with the new values) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1776 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-204-1185/+1185
| | | | | | May need some manual corrections here and there, but should basically be ok. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1658 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed debug outputOliver Tappe2008-03-171-2/+7
| | | | | | | | * fixed problem with respect to writing system attributes: do not filter unset attributes for the default-system, as we want that to show all existing attributes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1649 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for stage1 attributes that are stored along each plugin ↵Oliver Tappe2008-03-141-9/+65
| | | | | | | | | installed into a vendor-OS. * an update of the slxos-plugin documentation is still missing (coming soon ;-) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1633 95ad53e4-c205-0410-b2fa-d234c58c8868
* * correct implementation bug that caused last schema change to work only ↵Oliver Tappe2008-02-171-3/+3
| | | | | | | | | half-way: now we can install the default plugins into the default vendor-OS - leading to db schema version 0.28 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1557 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped attribute ramfs_screen as it is no longer needed (splashy doesOliver Tappe2008-02-091-0/+10
| | | | | | | | | | 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
* * added TODO about lacking performance of set...Attrs()Oliver Tappe2008-01-111-0/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1465 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new DB-table 'installed_plugin', moving schema version to 0.21Oliver Tappe2008-01-081-0/+47
| | | | | | | | * added functionality to DB-layer for adding, removing and fetching plugins that have been installed into a vendor-OS. * added a set of tests related to installed plugins. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1447 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several smaller bugs found when testing slxexportOliver Tappe2008-01-071-16/+22
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1446 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished refactoring of attribute handling code, especially theOliver Tappe2008-01-071-320/+61Star
| | | | | | | | | | | | | merging of attributes, such that all tests are passed * tested and finished implementation of group support in slxconfig * added new class AttributeRoster which keeps track of the known attributes (the ones provided by the openslx core and any other ones that may have been added by some plugin). * added new option --list-attributes to slxconfig which shows information about all known attributes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1444 95ad53e4-c205-0410-b2fa-d234c58c8868
* more refactoring (not limited to attribute handling)Oliver Tappe2008-01-041-64/+479
| | | | | | | | | * completed separation of attributes and standard (column) values * improved tests a lot That work is still not finished, so expect things to fail horribly. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1443 95ad53e4-c205-0410-b2fa-d234c58c8868
* more work at refactoring of the way attributes are handled:Oliver Tappe2008-01-041-36/+79
| | | | | | | | | | * finished and integrated support for declaring known attributes from within plugins (they need to install a AttrInfo module) * implemented support for checking which attributes are applicable to systems and clients respectively * adjusted slxconfig to new attribute handling (systems only at the moment) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1442 95ad53e4-c205-0410-b2fa-d234c58c8868
* * intermediate checkin of refactoring of the way attributes are stored in DBOliver Tappe2008-01-032-38/+99
| | | | | | | and passed in and out via the DB-layer N.B.: this may break things, will be fixed later today git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1440 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added more tests for basic DB-features: group, global_info and Oliver Tappe2007-12-271-19/+32
| | | | | | | client_system_ref git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1435 95ad53e4-c205-0410-b2fa-d234c58c8868
* * completed regression tests for vendor-OSesOliver Tappe2007-12-161-7/+12
| | | | | | | | | * added regression tests for exports, systems and clients * fixed several bugs found by these tests * cosmetical cleanups in ConfigDB.pm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1431 95ad53e4-c205-0410-b2fa-d234c58c8868
* * started to work on configDB-testsOliver Tappe2007-11-092-12/+40
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1407 95ad53e4-c205-0410-b2fa-d234c58c8868
* * now makes use of readPassword() from Utils.pmOliver Tappe2007-09-231-5/+2Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1343 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added POD to ConfigDB, and did some fixes along the wayOliver Tappe2007-08-021-3/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1306 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped support for CSV databases, as they are simply not good enoughOliver Tappe2007-07-312-185/+15Star
| | | | | | | | | | | | * added support for db-user and db-passwd: + the mysql backend will now ask for the password upon connect + you can specify the db-user and db-passwd via slxsettings (so you never have to enter it manually afterwards) * slxsettings now checks db-type against an explicit pattern to avoid problems caused by typos git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1295 95ad53e4-c205-0410-b2fa-d234c58c8868
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-212-8/+8
| | | | | | | | | whose name contain UTF8-characters * fixed problem with locale-specific number format being used during DB- creation (fixes the problem that database access would only work once for de_DE-locales [reported by Detlef Schulz]) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1266 95ad53e4-c205-0410-b2fa-d234c58c8868
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-184-30/+31
| | | | | | | Confess()-ing can still be triggered by specifying --debug-confess on the commandline. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1249 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-105-5/+29
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-015-32/+16Star
| | | | | | | 'use of uninitialized values', a couple of which might still show up * adjusted all code with respect to passing perlcritic level 4 and 5 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1207 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed showstopping bugs introduced with rev 1176, sorry!Oliver Tappe2007-06-204-386/+375Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1177 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-205-36/+36
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-174-27/+12Star
| | | | | | | | | | | | | | | | | | | | * instead of supporting configurable paths at different hierarchy levels, there are now only five configurable folder: + base-path (/opt/openslx), fixed at installation time + config-path (/etc/opt/openslx), fixed at installation time + private-path (/var/opt/openslx), freely configurable by user + public-path (/srv/openslx), freely configurable by user + temp-path (/tmp), freely configurable by user this closes ticket#143 * several holes have been plugged concerning the creation of folders before they are accessed, closing ticket#142 * the functionality of generating config default folders has been moved from the Makefile into a new Perl-module (ConfigFolder.pm), in order to be available to the Perl-scripts, too * slxsettings has been changed to reflect the nature of base-path and config-path as fixed paths git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
* * simplified declaration of base classes via 'use base'Oliver Tappe2007-05-135-28/+12Star
| | | | | | | * simplified checking for correct API-version of modules git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1072 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanup in DB-modulesOliver Tappe2007-05-115-23/+16Star
| | | | | | * DBD::CSV is now required to be 0.22 or higher (to circumvent problems on SuSE-9.3) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1046 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new table global_info to DB-schema, in order to support nbd-server-portsOliver Tappe2007-05-062-10/+87
| | | | | | | | * added transaction support to config-DB * added support for incrementing global counters (which live in global_info) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1011 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed some holes in param check, could lead to crashesOliver Tappe2007-05-051-5/+5
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@998 95ad53e4-c205-0410-b2fa-d234c58c8868
* overhaul the settings concept:Oliver Tappe2007-05-022-57/+0Star
| | | | | | | | | | * now all settings live in the settings file, no more settings table in the DB * clearified slxsettings and its options * removed all references to db table 'settings' * added some new extended settings git-svn-id: http://svn.openslx.org/svn/openslx/trunk@988 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleanupOliver Tappe2007-04-232-2/+1Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@918 95ad53e4-c205-0410-b2fa-d234c58c8868
* * improved error message in case a database module couldOliver Tappe2007-04-133-3/+3
| | | | | | | not be loaded git-svn-id: http://svn.openslx.org/svn/openslx/trunk@886 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect module names in error message.Oliver Tappe2007-04-133-3/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@885 95ad53e4-c205-0410-b2fa-d234c58c8868
* * circumvent problem with older versions of DBD::CSV not supporting the ↵Oliver Tappe2007-04-111-1/+9
| | | | | | | | | max()-function (this caused problems on SUSE-9.3). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@874 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed a bad bug in _updateRefTable that would delete many more items than ↵Oliver Tappe2007-03-261-1/+6
| | | | | | should have been git-svn-id: http://svn.openslx.org/svn/openslx/trunk@823 95ad53e4-c205-0410-b2fa-d234c58c8868
* * inserted correct copyright headerOliver Tappe2007-03-235-15/+50
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@813 95ad53e4-c205-0410-b2fa-d234c58c8868
* * largish overhaul, changed ConfigDB to be object-oriented (could be ↵Oliver Tappe2007-03-155-200/+198Star
| | | | | | | | | | | improved, though!) * slxos-setup, slxos-export, slxconfig and slxconfig-demuxer can now be run one after the other in order to get a complete setup * still problems when trying to boot that system here, need to investigate... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@774 95ad53e4-c205-0410-b2fa-d234c58c8868
* * some work towards completing the API documentation (POD)Oliver Tappe2006-12-111-0/+478
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@530 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several missing return statementsOliver Tappe2006-12-111-5/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@529 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed linebreak problem, now we use '\x0a' only, in orderOliver Tappe2006-10-291-1/+1
| | | | | | | to be compatible with oocalc. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@496 95ad53e4-c205-0410-b2fa-d234c58c8868