Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bb366115
Commit
bb366115
authored
Sep 21, 2011
by
Leigh B Stoller
Browse files
Fix for "text" which is the same as "text default NULL".
parent
952d847c
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/schemadiff
View file @
bb366115
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-20
02, 2006, 2007, 2010
University of Utah and the Flux Group.
# Copyright (c) 2000-20
11
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -251,6 +251,12 @@ sub read_schema($) {
my
(
$name
,
$definition
)
=
(
$
1
,
$
2
);
debug
("
Found column
$name
with type
$definition
\n
");
# Canonicalize.
if
(
$definition
eq
"
text
")
{
debug
("
Converting to 'text default NULL'
\n
");
$definition
=
"
text default NULL
";
}
# Change timestamp(14) to timestamp!
$definition
=~
s/timestamp NOT NULL default.*/timestamp NOT NULL/g
;
$definition
=~
s/timestamp\(14\)/timestamp/g
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment