diff options
author | Oliver Tappe | 2007-05-06 18:47:32 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-05-06 18:47:32 +0200 |
commit | d4d2aa85c9484f672eb93518476343276eb07ab0 (patch) | |
tree | f24d94b7ad70386ca88a0218a77c1e503886a321 /config-db/OpenSLX/DBSchema.pm | |
parent | * fixed minor problem with superfluous rm warning (diff) | |
download | core-d4d2aa85c9484f672eb93518476343276eb07ab0.tar.gz core-d4d2aa85c9484f672eb93518476343276eb07ab0.tar.xz core-d4d2aa85c9484f672eb93518476343276eb07ab0.zip |
* added new table global_info to DB-schema, in order to support nbd-server-ports
* 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
Diffstat (limited to 'config-db/OpenSLX/DBSchema.pm')
-rw-r--r-- | config-db/OpenSLX/DBSchema.pm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config-db/OpenSLX/DBSchema.pm b/config-db/OpenSLX/DBSchema.pm index 88bbc1a8..ef8ed0d3 100644 --- a/config-db/OpenSLX/DBSchema.pm +++ b/config-db/OpenSLX/DBSchema.pm @@ -111,6 +111,11 @@ $DbSchema = { 'vendor_os_id:fk', # foreign key 'comment:s.1024', # internal comment (optional, for admins) 'type:s.10', # 'nbd-squash', 'nfs', ... + 'server_ip:s.16', # IP of exporting server, if empty the + # boot server will be used + 'port:i', # some export types need to use a specific + # port for each incarnation, if that's the + # case you can specify it here 'uri:s.256', # path to export (squashfs or NFS-path), if # empty it will be auto-generated by # config-demuxer @@ -176,6 +181,11 @@ $DbSchema = { 'group_id:fk', # foreign key 'system_id:fk', # foreign key ], + 'global_info' => [ + # a home for global counters and other info + 'id:s.32', # key + 'value:s.128', # value + ], }, }; @@ -315,6 +325,17 @@ if ($lang =~ m[^\w\w_(\w\w)]) { 'table' => 'group_system_ref', 'cols' => $DbSchema->{'tables'}->{'group_system_ref'}, }, + { + 'cmd' => 'add-table', + 'table' => 'global_info', + 'cols' => $DbSchema->{'tables'}->{'global_info'}, + 'vals' => [ + { # add nbd-server-port + 'id' => 'next-nbd-server-port', + 'value' => '5000', + }, + ], + }, ], ); |