-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix creating a table with
AUTOINCREMENT
and ON UPDATE
followed by…
… `PRIMARY KEY` (#158) This reverts e59eff8. The fix was wrong. When spotting it, I misunderstood that the first token was already consumed. Without the fix, the new test fails with: ``` Cannot combine AUTOINCREMENT and multiple primary keys in SQLite. ``` This is because we've consumed one extra token (`,`), and the `PRIMARY KEY` then gets assigned to the `created_at` column as well.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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