Skip to content

Commit a1f28f9

Browse files
authored
Add additional tags needed by sqlite3 (#310)
1 parent 837b6bb commit a1f28f9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

integration_test/sql/migration.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ defmodule Ecto.Integration.MigrationTest do
519519
:ok = down(PoolRepo, num, AlterColumnMigration, log: false)
520520
end
521521

522+
@tag :modify_column
522523
test "modify column with from", %{migration_number: num} do
523524
assert :ok == up(PoolRepo, num, AlterColumnFromMigration, log: false)
524525

@@ -538,6 +539,7 @@ defmodule Ecto.Integration.MigrationTest do
538539
:ok = down(PoolRepo, num, AlterColumnFromPkeyMigration, log: false)
539540
end
540541

542+
@tag :alter_foreign_key
541543
test "modify foreign key's on_delete constraint", %{migration_number: num} do
542544
assert :ok == up(PoolRepo, num, AlterForeignKeyOnDeleteMigration, log: false)
543545

integration_test/sql/migrator.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ defmodule Ecto.Integration.MigratorTest do
7676
assert migrated_versions(PoolRepo) == []
7777
end
7878

79+
@tag :prefix
7980
test "does not commit migration if insert into schema migration fails" do
8081
# First we create a new schema migration table in another prefix
8182
assert up(PoolRepo, 33, AnotherSchemaMigration, log: false) == :ok
@@ -171,6 +172,7 @@ defmodule Ecto.Integration.MigratorTest do
171172
end
172173
end
173174

175+
@tag :lock_for_migrations
174176
test "raises when connection pool is too small" do
175177
config = Application.fetch_env!(:ecto_sql, PoolRepo)
176178
config = Keyword.merge(config, pool_size: 1)

0 commit comments

Comments
 (0)