[DBAL-353] doctrine:schema:update doesn't understand it doesn't need to run again Created: 25/Sep/12 Updated: 23/Jan/13 Resolved: 23/Jan/13 |
|
| Status: | Closed |
| Project: | Doctrine DBAL |
| Component/s: | Schema Managers |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Security Level: | All |
| Type: | Bug | Priority: | Minor |
| Reporter: | Mark A. Hershberger | Assignee: | Marco Pivetta |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Description |
|
doctrine:schema:update keeps thinking there is more to do: $ php app/console doctrine:schema:update --dump-sql ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL; ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL
$ php app/console doctrine:schema:update --force
Updating database schema...
Database schema updated successfully! "2" queries were executed
$ php app/console doctrine:schema:update --dump-sql ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL; ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL |
| Comments |
| Comment by Christophe Coevoet [ 25/Sep/12 ] |
|
Can you paste your ORM mapping for these fields ? |
| Comment by John Robeson [ 01/Nov/12 ] |
|
I had the same problem. I used doctrine:mapping:import This sounds like the same problem with the string key PS: I ran into that doctrine:mapping:import issue |