-
Notifications
You must be signed in to change notification settings - Fork 892
addTimestamps: update updated_at timestamp on row update #1798
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
Conversation
2c5a880
to
13e28fe
Compare
Looks like the SQLiteAdapter doesn't like the update syntax:
|
I will take a look later on today or tomorrow. SQLite is annoying with how it supports altering a table with some pretty awful restrictions that require cumbersome workarounds. |
@MasterOdin cool! Thanks for checking. It looks like some level of abstraction around the |
Ah, it looks like we should delete this check from the sqlite adapter: phinx/src/Phinx/Db/Adapter/SQLiteAdapter.php Lines 1483 to 1485 in 54ece1f
SQLite does not support the This all does raise the point of whether or not this should be accepted as it does make the default behavior of one adapter (MySQL) different than the others as it's the only one that supports this clause. |
13e28fe
to
bae6432
Compare
Can we merge? |
Assuming people are fine with MySQL having different behavior, yes? I can write up a PR adding a note about this to the documentation. |
@lorenzo @markstory @othercorey any opionions? |
I'm fine with MySQL being different. People using MySQL will want to be able to use |
We might want to further document this then, though. Merging for now. |
Link #868 . Updates don't reflect in the updated_at column for the default convenience methods.