Skip to content
New issue

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

Run migration for fields type of date and datetime #22

Closed
zak-wojtek77 opened this issue Dec 12, 2019 · 1 comment
Closed

Run migration for fields type of date and datetime #22

zak-wojtek77 opened this issue Dec 12, 2019 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@zak-wojtek77
Copy link

If I have field name "create_date" of type "datetime" (or "date") and when I run command:
vendor/bin/phalcon migration run --verbose
I see that:
1576145901.8674: ALTER TABLE test MODIFY create_date DATE NOT NULL AFTER name => 1576145901.89 (0.022550106048584)
regardless of whether something has been changed or not

Finally if the table has a lot of records, execution time of SQL queries it is very long.

My database: MySQL 5.5
PHP version: 7.2
Phalcon version: 3.4.1
Phalcon phalcon-devtools version: 3.4.9

@Jeckerson Jeckerson added bug Something isn't working enhancement New feature or request labels Dec 13, 2019
@Jeckerson Jeckerson self-assigned this Dec 13, 2019
@Jeckerson Jeckerson added this to the 1.0.x milestone Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 13, 2019
Jeckerson added a commit that referenced this issue Dec 14, 2019
#22 - Fix unnecessary table alter due DATE and DATETIME columns
@Jeckerson
Copy link
Member

Fixed in 3.4.10

@Jeckerson Jeckerson modified the milestones: 1.0.x, 1.1.x Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants