That is the primary reason why I do not consider it for new projects. It's just to slow to iterate on.
That is the primary reason why I do not consider it for new projects. It's just to slow to iterate on.
https://stackoverflow.com/questions/8442147/how-to-delete-or...
1. create new table as the one you are trying to change
2. copy all data,
3. drop old table,
4. rename the new one.
It's up to others to decide whether that is complex enough to warrant avoiding sqlite“Copy all data” also can be difficult if the table has data that the database created that must stay the same because you use it elsewhere. That shouldn’t be a problem with SQLite, as it doesn’t allow rowid as foreign key, but if you use it as a foreign key outside the database, or use the hash of a full row to detect changes, it may still bite you.
It also may mean being offline for a significant amount of time, but that also often is (effectively) the case for databases that support deleting columns
sqlite supports ADD COLUMN and RENAME COLUMN DDLs.
Dropping columns is not supported, nor is adding some of the more complex column, that does require going through full table rewriting.
See another reply in this thread: https://news.ycombinator.com/item?id=20841814