Skip to content

Commit 9cfd26e

Browse files
committed
Update rename column to match redundant definition
1 parent 17cc53a commit 9cfd26e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎lib/ecto/adapters/sqlite3/connection.ex‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ defmodule Ecto.Adapters.SQLite3.Connection do
565565
]
566566
end
567567

568-
def execute_ddl({:rename, %Table{} = current_table, old_col, new_col}) do
568+
def execute_ddl({:rename, %Table{} = table, current_column, new_column}) do
569569
[
570570
[
571571
"ALTER TABLE ",
572-
quote_table(current_table.prefix, current_table.name),
572+
quote_table(table.prefix, table.name),
573573
" RENAME COLUMN ",
574-
quote_name(old_col),
574+
quote_name(current_column),
575575
" TO ",
576-
quote_name(new_col)
576+
quote_name(new_column)
577577
]
578578
]
579579
end

0 commit comments

Comments
 (0)