Commit 4c20699c authored by Christoph Schmatzler's avatar Christoph Schmatzler Committed by Katharina Fey
Browse files

Change rename_column() in postgres backend to generate valid query

parent a8da5fbd
......@@ -112,7 +112,7 @@ impl SqlGenerator for Pg {
fn rename_column(old: &str, new: &str) -> String {
format!("ALTER COLUMN \"{}\" RENAME TO \"{}\"", old, new)
format!("RENAME COLUMN \"{}\" TO \"{}\"", old, new)
fn create_index(table: &str, schema: Option<&str>, name: &str, _type: &Type) -> String {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment