minor fix for plugable schema

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2603 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-01-14 19:03:37 +00:00
parent 2cddbeb6de
commit f69ee3624e
2 changed files with 5 additions and 2 deletions

View File

@ -107,7 +107,7 @@ sub buildcreatestmt
foreach $col (@{$descr->{cols}})
{
if (($types) && ($types->{$col})) {
$retv .= "\"$col\"" . $types->{$col};
$retv .= "\"$col\" " . $types->{$col};
} else {
if (isAKey(\@{$descr->{keys}},$col)) { # keys need defined length
$retv .= "\"$col\" VARCHAR(128)";

View File

@ -17,7 +17,8 @@ package xCAT_schema::Sample;
# 6 change the data types. The default data type is TEXT if not specified.
# The supported data types are:
# REAL,CHAR,TEXT,DATE,TIME,FLOAT,BIGINT,DOUBLE,STRING,
# BINARY,DECIMAL,BOOLEAN,INTEGER,VARCHAR,SMALLINT,TIMESTAMP
# BINARY,DECIMAL,BOOLEAN,INTEGER,VARCHAR,SMALLINT,TIMESTAMP
# Please note that SQLight only supports: INTEGER, REAL, TEXT, BLOB.
# 7 change the table descriptions and column descriptions to your like.
# 8 restart the the xcatd, the tables will be automatically generated.
# 9 copy your file to all the service nodes and restart the xcatd on all the service node.
@ -35,6 +36,7 @@ package xCAT_schema::Sample;
descriptions => {
jobid => 'The job id.',
status => 'The status of the job.',
comments => 'Any user-written notes.',
disable => "Set to 'yes' or '1' to comment out this row.",
},
},
@ -52,6 +54,7 @@ package xCAT_schema::Sample;
jobid => 'The job that runs on the node.',
jobstatus => 'The status of the job on the node.',
cpu_usage => 'The percent of cpu usage on the node.',
comments => 'Any user-written notes.',
disable => "Set to 'yes' or '1' to comment out this row.",
},
},