Jira issue originally created by user caefer:
updating leads to the following error
$ php app/console doctrine:schema:update
Operation 'Doctrine\DBAL\Platforms\AbstractPlatform::getAlterTableSQL' is not supported by platform.
Comment created by @beberlei:
Which is correct, because ALTER TABLE is not supported by SQLite.
Issue was closed with resolution "Invalid"
Comment created by caefer:
so a schema update can not be performed?
if so then there should be a more descriptive error message telling the user not to perform this task on sqlite databases.
In Sqlite you need to drop-database + create-database to get it working.
Comment created by dosipov:
I get the same error while executing migrations:diff. Now, I use SQLite locally, but MySQL on production. Shouldn't migrations:diff create database agnostic migration, that I wouldn't be able to execute locally, but would work on production?
Comment created by yitznewton:
1 for making this abstract enough to handle a standard dev environment: getAlterTableSQL() should create and store an abstraction, and once that's done, either fail on attempted migration of actual SQLite database, or preferably issue warning & require --force or the like to do DROP CREATE
Comment created by hason:
Proposed solution http://www.doctrine-project.org/jira/browse/[DBAL-370](http://www.doctrine-project.org/jira/browse/DBAL-370)
A related Github Pull-Request [GH-242] was opened
A related Github Pull-Request [GH-242] was closed
Comment created by galou:
SQLite supports a limited subset of ALTER TABLE. The ALTER TABLE command in SQLite allows the user to rename a table or to add a new column to an existing table. It is not possible to rename a column, remove a column, or add or remove constraints from a table.