Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Temporal to save revisions correctly when
save()
is called …
…multiple times per request. Temporal's save logic for when models are not new was fully rewitten. Now instead of saving the new information as a new model the old data is inserted as a new row and the current row is saved with the new information. This means that the model object that `save()` is called on will always point to the most recent revision in the DB. Proper comments where also added with the correct copright and author information.
- Loading branch information
Steve "uru" West
committed
Apr 24, 2013
1 parent
0ba2d8d
commit e4fc063
Showing
5 changed files
with
67 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
return array( | ||
'sql_max_timestamp_mysql' => '2038-01-18 22:14:08', | ||
'sql_max_timestamp_unix' => '2147483647', | ||
'sql_max_timestamp_unix' => 2147483647, | ||
); |