You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow ALTER TABLE to operate on columns without COLUMN keyword (#145)
This PR adds support for the following valid ALTER TABLE syntax:
```sql
ALTER TABLE <table-name> ADD <column-name> <data-type>;
```
and
```sql
ALTER TABLE <table-name> DROP <column-name>;
```
Prior to this PR, these queries do not work and result in error
conditions.
For reference, here is the documented SQLite syntax for ALTER TABLE
queries:
https://www.sqlite.org/syntax/alter-table-stmt.html
It shows that the COLUMN keyword is optional, and I've successfully
tested syntax without the COLUMN keyword in both MySQL and SQLite.
Reported by @JanJakes
0 commit comments