From 957923dc04e12c9f0d8a9910d7195b675966d264 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Tue, 17 Jan 2023 12:58:06 -0800 Subject: [PATCH] Fix transposed index errors --- lib/ast_parser_full_detections.ex | 4 ++-- test/runner_test.exs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ast_parser_full_detections.ex b/lib/ast_parser_full_detections.ex index 132262a..8db0aec 100644 --- a/lib/ast_parser_full_detections.ex +++ b/lib/ast_parser_full_detections.ex @@ -34,10 +34,10 @@ defmodule ExcellentMigrations.AstParserFullDetections do [] {_, %{lock_disabled?: true, ddl_transaction_disabled?: false, line: line}} -> - [{:index_concurrently_without_disable_migration_lock, line}] + [{:index_concurrently_without_disable_ddl_transaction, line}] {_, %{lock_disabled?: false, ddl_transaction_disabled?: true, line: line}} -> - [{:index_concurrently_without_disable_ddl_transaction, line}] + [{:index_concurrently_without_disable_migration_lock, line}] {_, %{line: line}} -> [ diff --git a/test/runner_test.exs b/test/runner_test.exs index 8b743a3..b67a066 100644 --- a/test/runner_test.exs +++ b/test/runner_test.exs @@ -126,13 +126,13 @@ defmodule ExcellentMigrations.RunnerTest do line: 15, path: "test/example_migrations/20220804010152_create_index_concurrently_without_disable_ddl_transaction.exs", - type: :index_concurrently_without_disable_migration_lock + type: :index_concurrently_without_disable_ddl_transaction }, %{ line: 15, path: "test/example_migrations/20220804010153_create_index_concurrently_without_disable_migration_lock.exs", - type: :index_concurrently_without_disable_ddl_transaction + type: :index_concurrently_without_disable_migration_lock } ] } == Runner.check_migrations(migrations_paths: file_paths)