Closed (duplicate)
Project:
Drupal driver for SQL Server and SQL Azure
Version:
7.x-1.x-dev
Component:
Schema handling
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2010 at 15:57 UTC
Updated:
29 May 2013 at 19:11 UTC
Comments
Comment #1
ben.bunk commentedSounds like an index? Any more information on when you saw this
Comment #2
jfha73 commentedno, that was all I saw.
Comment #3
ben.bunk commentedI'm pretty sure this is because they don't want you to drop a field that is part of an index. I'll run a test and see if that's the case here.
Comment #4
damien tournoud commentedWhich version of the driver are you using? Newer versions delete all the related objects (indexes, constraints) before dropping a field.
Could you try again with the -RC1 version released today?
Comment #5
jfha73 commentedI'm not testing anymore with Drupal 7 on SQL Server, but if somebody else is still doing this, they can try and let us know.
Comment #6
csedev commentedReceived a similar error when running update.php. System was attempting to update the Views module, Update #7301.
Running the most recent version of the driver.
SQL Server 2008 R2
PHP 5.3
Microsoft SQL Driver for PHP 2.0.1
Comment #7
damien tournoud commentedInteresting. This looks valid.
Comment #8
damien tournoud commentedComment #9
geodaniel commentedI'm also seeing this issue on a recent update of Commerce module (Update 7108):
Comment #10
panmanphil commentedI am also experiencing this trying to update the views module. Is there anything I can do to help, or any idea of when a solution or workaround is available.
I also have the 2.01 sql server php driver loaded. I have the 7.x-1.1 drupal sql server module loaded and so see a newer version though the status report is not recommending an update yet on that.
Comment #11
mainsequence commentedDid anyone find a solution to this? Is the database alteration one that can be made by hand in some way if the update module can't do it?
Comment #12
panmanphil commentedI am having conversations about this at the following issue:
http://drupal.org/node/1561396
have found the problem and one proposed patch is created, but the patch is not for the sqlsrv driver. Not sure if that is the correct way to go or not. Docs seem to indicate the caller, not the driver should manage indexes, and in this case an index and a computed field.
Comment #13
panmanphil commentedI have a patch posted in this issue, could any of you try it out and see if it works for you?
http://drupal.org/node/1526404
Comment #14
panmanphil commentedThat patch I mentioned has been applied to the dev branch of the sqlsrv module now. http://drupal.org/node/1526404#comment-6387646, easier to try out and confirm it will work for you.
Comment #15
omegamonk commentedAs @panmanphil indicated, the patch from http://drupal.org/node/1526404 was commited to 7.x-1.x-dev. I was not able reproduce the issue using the dev version of the sqlsrv driver. I am going to mark the issue closed as a duplicate of http://drupal.org/node/1526404.