* Fix parsing of strings with leading whitespace for MySQL, Oracle, PostgreSQL,
SQLServer and SQLite
* Fix parsing of MySQL column comments (RT#83380)
+ * Fix multi-line comments in YAML and JSON producers
0.11021 2015-01-29
'name' => $table->name,
'order' => $table->order,
'options' => $table->options || [],
- $table->comments ? ('comments' => $table->comments ) : (),
+ $table->comments ? ('comments' => [ $table->comments ] ) : (),
'constraints' => [
map { view_constraint($_) } $table->get_constraints
],
'is_primary_key' => scalar $field->is_primary_key,
'is_unique' => scalar $field->is_unique,
$field->is_auto_increment ? ('is_auto_increment' => 1) : (),
- $field->comments ? ('comments' => $field->comments) : (),
+ $field->comments ? ('comments' => [ $field->comments ]) : (),
keys %{$field->extra} ? ('extra' => { $field->extra } ) : (),
};
}
'name' => $table->name,
'order' => $table->order,
'options' => $table->options || [],
- $table->comments ? ('comments' => $table->comments ) : (),
+ $table->comments ? ('comments' => [ $table->comments ] ) : (),
'constraints' => [
map { view_constraint($_) } $table->get_constraints
],
'is_primary_key' => scalar $field->is_primary_key,
'is_unique' => scalar $field->is_unique,
$field->is_auto_increment ? ('is_auto_increment' => 1) : (),
- $field->comments ? ('comments' => $field->comments) : (),
+ $field->comments ? ('comments' => [ $field->comments ]) : (),
keys %{$field->extra} ? ('extra' => { $field->extra } ) : (),
};
}
]
},
"person_id" : {
+ "comments" : [
+ "field comment 1",
+ "field comment 2"
+ ],
"data_type" : "INTEGER",
"default_value" : null,
"is_auto_increment" : 1,
size:
- 20
person_id:
+ comments:
+ - field comment 1
+ - field comment 2
data_type: INTEGER
default_value: ~
is_auto_increment: 1
create table person (
+ -- field comment 1
+ -- field comment 2
person_id INTEGER PRIMARY KEY AUTOINCREMENT,
'name' varchar(20) not null,
'age' integer,