Hello everyone,
recently I've noticed that the DEFAULT clauses give me error with the following column config:
new Column(
'label',
[
'type' => Column::TYPE_VARCHAR,
'size' => 128,
'notNull' => true,
'default' => '',
'after' => 'id',
]
)
The reason is that createTable()
method in Phalcon\Db\Dialect\Mysql
generates DEFAULT
clause with default value wrapped into double quotes("
) instead of quotation marks ('
);
It happens due to this code.
Can someone please confirm this behaviour is correct or whether it's me doing it wrong?