Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

rename_column sql syntax is incorrect #32

Description

@cgunnels

please see http://dev.mysql.com/doc/refman/5.1/en/alter-table.html

dm-migrations / lib / dm-migrations / sql / table_modifier.rb

you need to change the sql syntax to look like this:
"ALTER TABLE #{quoted_table_name} CHANGE #{quote_column_name(name)} #{quote_column_name(new_name)}"

According to the docs this is correct syntax, also try running the current syntax via a ui or command line and you will get an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions