summaryrefslogtreecommitdiffstats
path: root/create/schema/gen.pl
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-31 12:13:35 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-07-31 12:13:35 +0000
commit670a807481687e80a2dda4ba67f6c6988e1c1011 (patch)
treea15da1925d775b2496c5925c45eb0f3b9791c5cb /create/schema/gen.pl
parent0f63d01da606252a4958fab30405425a6b5baa08 (diff)
downloadzabbix-670a807481687e80a2dda4ba67f6c6988e1c1011.tar.gz
zabbix-670a807481687e80a2dda4ba67f6c6988e1c1011.tar.xz
zabbix-670a807481687e80a2dda4ba67f6c6988e1c1011.zip
- fixed definition of serial columns to allow use of older MySQL (Alexei)
[svn merge -r4491:4492 svn://svn.zabbix.com/branches/1.4.2] git-svn-id: svn://svn.zabbix.com/trunk@4493 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create/schema/gen.pl')
-rwxr-xr-xcreate/schema/gen.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/create/schema/gen.pl b/create/schema/gen.pl
index 37b3719f..83bfcd6f 100755
--- a/create/schema/gen.pl
+++ b/create/schema/gen.pl
@@ -38,7 +38,9 @@ local $output;
"t_id" => "bigint unsigned",
"t_integer" => "integer",
"t_time" => "integer",
- "t_serial" => "serial",
+# It does not work for MySQL 3.x and <4.x (4.11?)
+# "t_serial" => "serial",
+ "t_serial" => "bigint unsigned not null auto_increment unique",
"t_double" => "double(16,4)",
"t_percentage" => "double(5,2)",
"t_varchar" => "varchar",