# Default? XXX Need better quoting!
my $default = $field->default_value;
-=cut
- if ( defined $default ) {
- SQL::Translator::Producer->_apply_default_value(
- \$field_def,
- $default,
- [
- 'NULL' => \'NULL',
- ],
- );
- }
-=cut
+
+# if ( defined $default ) {
+# SQL::Translator::Producer->_apply_default_value(
+# \$field_def,
+# $default,
+# [
+# 'NULL' => \'NULL',
+# ],
+# );
+# }
if ( my $comments = $field->comments ) {
$field_def .= qq[ comment '$comments'];
# Default value
#
my $default = $field->default_value;
-=cut
- if ( defined $default ) {
- SQL::Translator::Producer->_apply_default_value(
- \$field_def,
- $default,
- [
- 'NULL' => \'NULL',
- 'now()' => 'now()',
- 'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
- ],
- );
- }
-=cut
+
+# if ( defined $default ) {
+# SQL::Translator::Producer->_apply_default_value(
+# \$field_def,
+# $default,
+# [
+# 'NULL' => \'NULL',
+# 'now()' => 'now()',
+# 'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
+# ],
+# );
+# }
#
# Not null constraint
$def .= ' MATCH ' . ( $c->match_type =~ /full/i ) ? 'FULL' : 'PARTIAL';
}
-=cut
- if ( $c->on_delete ) {
- $def .= ' ON DELETE '.join( ' ', $c->on_delete );
- }
+# if ( $c->on_delete ) {
+# $def .= ' ON DELETE '.join( ' ', $c->on_delete );
+# }
+
+# if ( $c->on_update ) {
+# $def .= ' ON UPDATE '.join( ' ', $c->on_update );
+# }
- if ( $c->on_update ) {
- $def .= ' ON UPDATE '.join( ' ', $c->on_update );
- }
-=cut
if ( $c->deferrable ) {
$def .= ' DEFERRABLE';
}
# Default? XXX Need better quoting!
my $default = $field->default_value;
-=cut
- if (defined $default) {
- SQL::Translator::Producer->_apply_default_value(
- \$field_def,
- $default,
- [
- 'NULL' => \'NULL',
- 'now()' => 'now()',
- 'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
- ],
- );
- }
-=cut
+
+# if (defined $default) {
+# SQL::Translator::Producer->_apply_default_value(
+# \$field_def,
+# $default,
+# [
+# 'NULL' => \'NULL',
+# 'now()' => 'now()',
+# 'CURRENT_TIMESTAMP' => 'CURRENT_TIMESTAMP',
+# ],
+# );
+# }
return $field_def;