@@ -216,14 +216,6 @@ defmodule Ecto.Migrator do
216216 """
217217 @ spec up ( Ecto.Repo . t , integer , module , Keyword . t ) :: :ok | :already_up
218218 def up ( repo , version , module , opts \\ [ ] ) do
219- opts =
220- if log_sql = opts [ :log_sql ] do
221- IO . warn ( ":log_sql is deprecated, please use log_migrations_sql instead" )
222- Keyword . put ( opts , :log_migrations_sql , log_sql )
223- else
224- opts
225- end
226-
227219 conditional_lock_for_migrations module , version , repo , opts , fn config , versions ->
228220 if version in versions do
229221 :already_up
@@ -286,14 +278,6 @@ defmodule Ecto.Migrator do
286278 """
287279 @ spec down ( Ecto.Repo . t , integer , module ) :: :ok | :already_down
288280 def down ( repo , version , module , opts \\ [ ] ) do
289- opts =
290- if log_sql = opts [ :log_sql ] do
291- IO . warn ( ":log_sql is deprecated, please use log_migrations_sql instead" )
292- Keyword . put ( opts , :log_migrations_sql , log_sql )
293- else
294- opts
295- end
296-
297281 conditional_lock_for_migrations module , version , repo , opts , fn config , versions ->
298282 if version in versions do
299283 do_down ( repo , config , version , module , opts )
@@ -408,14 +392,6 @@ defmodule Ecto.Migrator do
408392 """
409393 @ spec run ( Ecto.Repo . t , String . t | [ String . t ] | [ { integer , module } ] , atom , Keyword . t ) :: [ integer ]
410394 def run ( repo , migration_source , direction , opts ) do
411- opts =
412- if log_sql = opts [ :log_sql ] do
413- IO . warn ( ":log_sql is deprecated, please use log_migrations_sql instead" )
414- Keyword . put ( opts , :log_migrations_sql , log_sql )
415- else
416- opts
417- end
418-
419395 migration_source = List . wrap ( migration_source )
420396
421397 pending =
0 commit comments