diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 4ed6247b8..75f98af36 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -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)"; diff --git a/xCAT-server/lib/xcat/schema/samples/Sample.pm b/xCAT-server/lib/xcat/schema/samples/Sample.pm index 2919cdd1e..476a4bc89 100644 --- a/xCAT-server/lib/xcat/schema/samples/Sample.pm +++ b/xCAT-server/lib/xcat/schema/samples/Sample.pm @@ -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.", }, },