diff --git a/Sqltoci.php b/Sqltoci.php index 1b6fa03..851624e 100644 --- a/Sqltoci.php +++ b/Sqltoci.php @@ -260,7 +260,7 @@ function generate($tables = null) { } //si tiene DEAFAULT generar sql texto plano para escapar el strin en caso e.g. CURRENT_TIMESTAMP - if( $column_default == 'CURRENT_TIMESTAMP' ) + if( $column_default == 'CURRENT_TIMESTAMP' or $column_default == 'current_timestamp()') { $up .= PHP_EOL."\t\t\t"."'`$column[Field]` $column[Type] " . ($column['Null'] == 'NO' ? 'NOT NULL' : 'NULL') . (