We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug During creation of the table via createTable() method and specifying column with default value like that
createTable()
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
It concatenates until first space and create column like with
["_default":protected]=> string(17) "CURRENT_TIMESTAMP"
Steps to reproduce the behaviour:
$this->db->createTable('test', 'db_name', [ 'columns' => [ new Column('column_timestamp_default', [ 'type' => Column::TYPE_TIMESTAMP, 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', ]), ], ]);
Expected behavior
Create column as it is specified originally.
Details
The text was updated successfully, but these errors were encountered:
#14797 - Fix DEFAULT CURRENT_TIMESTAMP
cb039b2
#14797 - Add test case for DEFAULT ON UPDATE
ec18aac
#14797 - Update test case for DEFAULT ON UPDATE
33d343e
#14797 - Update CHANGELOG-4.0.md
0006dab
#14797 - Fix test case for DEFAULT ON UPDATE
470583a
Merge pull request #14798 from phalcon/fix/#14797-create-table-default
c69f80e
#14797 - Column default value
Fixed in #14798
Sorry, something went wrong.
Jeckerson
No branches or pull requests
Describe the bug
During creation of the table via
createTable()
method and specifying column with default value like thatIt concatenates until first space and create column like with
Steps to reproduce the behaviour:
Expected behavior
Create column as it is specified originally.
Details
The text was updated successfully, but these errors were encountered: