Jira issue originally created by user jcampbell:
I have the following columns defined:
* @var array
protected $feedKey = array();
* @var array
protected $privileges = array('none');
Every time I run " .\vendor\bin\doctrine-module orm:schema-tool:update --dump-sql", these two columns are "updated":
ALTER TABLE RoleResource ALTER COLUMN [privileges] VARCHAR(MAX) NOT NULL;
ALTER TABLE FeedEntity ALTER COLUMN feedKey VARCHAR(MAX) NOT NULL
When I browse to that table in Microsoft SQL Server Management Studio, the column definitions are already "privileges (varchar(max), not null)" and "feedKey (varchar(max), not null)".
The repeated update from schema-tool continues even after I let it run with --force.
Comment created by @deeky666:
There is WIP PR to support column comments in SQL Server which resolves this issue:
Comment created by @doctrinebot:
A related Github Pull-Request [GH-426] was closed:
Fixed in commit: 28264a1
Issue was closed with resolution "Fixed"
Comment created by greg0ire:
I'm having the same bug with postgresql and a json_array to array migration. Should this bug be reopened and made more generic or should I create a new one ?
A workaround for this bug is to simply delete the field. An additional line is generated (it adds an SQL comment).