summaryrefslogtreecommitdiffstats
path: root/create/schema/gen.pl
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-08 16:03:19 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-08 16:03:19 +0000
commit92ef7bbf6a7c38984e4cd596dcb86b5e2a1faafb (patch)
tree0c512d79a88744d2c6d6e5b15b8a6d0cd69ea6e2 /create/schema/gen.pl
parent40d8696d1b58c0f76ee82ba8ebdb90e965efcd62 (diff)
downloadzabbix-92ef7bbf6a7c38984e4cd596dcb86b5e2a1faafb.tar.gz
zabbix-92ef7bbf6a7c38984e4cd596dcb86b5e2a1faafb.tar.xz
zabbix-92ef7bbf6a7c38984e4cd596dcb86b5e2a1faafb.zip
- improved configuration script
- added suport of 'make dist' - fixed some bugs with DB supporting git-svn-id: svn://svn.zabbix.com/trunk@3814 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/schema/gen.pl')
-rwxr-xr-xcreate/schema/gen.pl29
1 files changed, 14 insertions, 15 deletions
diff --git a/create/schema/gen.pl b/create/schema/gen.pl
index 04cf83f9..6200fadc 100755
--- a/create/schema/gen.pl
+++ b/create/schema/gen.pl
@@ -40,8 +40,7 @@ local $output;
"t_image" => "longblob",
"t_history_log" => "text",
"t_history_text"=> "text",
-# "t_text" => "blob"
- "t_text" => "text"
+ "t_blob" => "blob"
);
%c=( "type" => "code",
@@ -57,7 +56,7 @@ local $output;
"t_image" => "ZBX_TYPE_BLOB",
"t_history_log" => "ZBX_TYPE_TEXT",
"t_history_text"=> "ZBX_TYPE_TEXT",
- "t_text" => "ZBX_TYPE_BLOB"
+ "t_blob" => "ZBX_TYPE_BLOB"
);
$c{"before"}="
@@ -81,20 +80,20 @@ ZBX_TABLE
static ZBX_TABLE tables[]={
";
-%oracle=("t_bigint" => "number(21)",
+%oracle=("t_bigint" => "bigint",
"before" => "",
"after" => "",
"type" => "sql",
- "t_id" => "number(21)",
- "t_integer" => "number(10)",
+ "t_id" => "bigint",
+ "t_integer" => "integer",
"t_serial" => "serial",
- "t_double" => "number(20,4)",
- "t_varchar" => "varchar2",
- "t_char" => "varchar2",
- "t_image" => "blob",
- "t_history_log" => "varchar2(4000)",
- "t_history_text"=> "CLOB",
- "t_text" => "varchar2(4000)"
+ "t_double" => "double",
+ "t_varchar" => "varchar",
+ "t_char" => "char",
+ "t_image" => "longblob",
+ "t_history_log" => "text",
+ "t_history_text"=> "text",
+ "t_blob" => "blob"
);
%postgresql=("t_bigint" => "bigint",
@@ -111,7 +110,7 @@ static ZBX_TABLE tables[]={
"t_history_log" => "varchar(255)",
"t_history_text"=> "text",
"t_time" => "integer",
- "t_text" => "text"
+ "t_blob" => "text"
);
%sqlite=("t_bigint" => "bigint",
@@ -127,7 +126,7 @@ static ZBX_TABLE tables[]={
"t_image" => "longblob",
"t_history_log" => "text",
"t_history_text"=> "text",
- "t_text" => "blob"
+ "t_blob" => "blob"
);
sub newstate