Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.2, 2.1.7
    • Fix Version/s: None
    • Component/s: Platforms
    • Security Level: All
    • Labels:
      None
    • Environment:
      Symfony console, MSSQL Server 2008 r2

      Description

      Hello,

      to create a schema for mssql works ok, but to alter the name of a column, use the SQL command "CHANGE" and Mssql not recognize this command.
      to alter the name of a column in MSSQL you should use the store procedure "sp_rename"

      http://msdn.microsoft.com/en-us/library/ms188351.aspx

      Do not know if I'm doing something the wrong way, but the command "php app \ console doctrine: schema: update" does not work by altering the name of the column

      sorry my english it's very poor

        Activity

        Diego Vidal created issue -
        Hide
        Fred Jiles added a comment -

        I get this error as well. Just trying to change a field from nvarchar(40) to nvarchar(60) outputs this sql
        ALTER TABLE offense_extension CHANGE disposition disposition NVARCHAR(60) DEFAULT NULL

        It should be ALTER TABLE offense_extension ALTER COLUMN disposition NVARCHAR(60) NULL

        Show
        Fred Jiles added a comment - I get this error as well. Just trying to change a field from nvarchar(40) to nvarchar(60) outputs this sql ALTER TABLE offense_extension CHANGE disposition disposition NVARCHAR(60) DEFAULT NULL It should be ALTER TABLE offense_extension ALTER COLUMN disposition NVARCHAR(60) NULL
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Project Doctrine 2 - ORM [ 10032 ] Doctrine DBAL [ 10040 ]
        Key DDC-1495 DBAL-199
        Affects Version/s 2.1.2 [ 10160 ]
        Affects Version/s 2.1.2 [ 10154 ]
        Component/s Platforms [ 10056 ]
        Component/s Tools [ 10015 ]
        Hide
        Benjamin Eberlei added a comment -

        This is fixed in another ticket i just realized and is included in the latest 2.1 DBAL release.

        Show
        Benjamin Eberlei added a comment - This is fixed in another ticket i just realized and is included in the latest 2.1 DBAL release.
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13189 ] jira-feedback2 [ 17762 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17762 ] jira-feedback3 [ 20117 ]
        Hide
        PandD added a comment - - edited

        This problem still exists.

        Here are some of the sql lines generated with :

        ALTER TABLE msrs CHANGE Temp27 Temp27 SMALLINT NOT NULL;
        ALTER TABLE batches CHANGE status status BIT DEFAULT NULL;

        Doctrine DBAL Version: 2.1.7
        MSSQL 2008 R2

        Show
        PandD added a comment - - edited This problem still exists. Here are some of the sql lines generated with : ALTER TABLE msrs CHANGE Temp27 Temp27 SMALLINT NOT NULL; ALTER TABLE batches CHANGE status status BIT DEFAULT NULL; Doctrine DBAL Version: 2.1.7 MSSQL 2008 R2
        PandD made changes -
        Affects Version/s 2.0.7 [ 10151 ]
        PandD made changes -
        Affects Version/s 2.1.7 [ 10200 ]
        Affects Version/s 2.0.7 [ 10151 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-199, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Diego Vidal
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: