mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1045: Schema-tool update missbehavior: Not changed columns generating empty SET #1305
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 25, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user lucasts:
HI,
It seems that some ghost changes are showing up.
In the dcm.yml definition I had that snippet:
and in another dcm
just to be clear, those columns are already in the database, as you can see in this dump:
first snippet:
second snippet:
And, running: /doctrine orm:schema-tool:update --dump-sql I got that:
As you can see, both columns had empty SET, that will become a exception in pgsql
I'm not sure why, can be because project has made(and still is) during alpha and beta doctrine 2
Anyways, thanks for the doctrine 2, help us a lot.
@doctrinebot commented on GitHub (Feb 25, 2011):
@doctrinebot commented on GitHub (Feb 25, 2011):
Comment created by @beberlei:
You are saying you use Doctrine Master or Alpha/Beta? I don't understand from your comments.
@doctrinebot commented on GitHub (Feb 26, 2011):
Comment created by lucasts:
Sorry for that.
I wish to say that we developed the project following most of the doctrine 2 phases(before alpha, all alphas, beta and finally the release)
So I was thinking that some garbage was generated during previous versions of doctrine. But this I'm supposing.
But to make it clear, all snippets and tests related above are from doctrine git master branch.
I'll try to do some investigating this weekend, I'm pretty sure that is something related to dc2 pgsql driver.
@doctrinebot commented on GitHub (May 1, 2011):
Comment created by @beberlei:
You can only really debug this by hacking into the code, can you open up lib/Doctrine/DBAL/Schema/Comparator.php and var_dump the value returned in diffColumn ?
@doctrinebot commented on GitHub (Mar 15, 2012):
Comment created by @asm89:
Closing because we were unable to reproduce and no further feedback was provided.
@doctrinebot commented on GitHub (Mar 15, 2012):
Issue was closed with resolution "Cannot Reproduce"
@doctrinebot commented on GitHub (May 15, 2014):
Comment created by finwe:
Could you please reopen? I'd be glad to help with debugging.
From what I've dumped, these are parameters and output of diffColumns which result in alter SQL
ALTER TABLE company ALTER evidencenumberseq SET ;Is this helpful? Should I dump anything else?
@doctrinebot commented on GitHub (May 15, 2014):
Comment created by @ocramius:
[~finwe] please abstract it into a test case, then we can re-open the issue.
@doctrinebot commented on GitHub (May 15, 2014):
Comment created by finwe:
Ran that on 2.4.0 before, it got fixed in 2.4.2, can stay closed.
@doctrinebot commented on GitHub (May 16, 2014):
Comment created by @deeky666:
It was fixed in commit:
8fe7410538