Commit 058e50a8 authored by Mike Hibler's avatar Mike Hibler

Deal with some case differences between mysql 5.0 and 5.1.

parent 9e260729
#!/usr/bin/perl -w
#
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -287,6 +287,10 @@ sub read_schema($) {
$definition = "text default NULL";
}
# Case issues
$definition =~ s/ DEFAULT / default /g;
$definition =~ s/ AUTO_INCREMENT/ auto_increment/g;
# Change timestamp(14) to timestamp!
$definition =~ s/timestamp NOT NULL default.*/timestamp NOT NULL/g;
$definition =~ s/timestamp\(14\)/timestamp/g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment