Skip to content

Commit

Permalink
Add bitstring table with mysql exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigitsu committed Feb 25, 2024
1 parent 6b1cbbe commit 24d6719
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration_test/myxql/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ version =
end

excludes = [
# MySQL does not have an array type
# MySQL does not have an array and bitstring type
:array_type,
:bitstring_type,
# The next two features rely on RETURNING, which MySQL does not support
:read_after_writes,
:returning,
Expand Down
8 changes: 8 additions & 0 deletions integration_test/support/migration.exs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ defmodule Ecto.Integration.Migration do
end
end

unless :bitstring_type in ExUnit.configuration()[:exclude] do
create table(:bitstrings) do
add :bs, :bitstring
add :bs_with_default, :bitstring, default: <<42::6>>
add :bs_with_size, :bitstring, size: 10
end
end

create table(:composite_pk, primary_key: false) do
add :a, :integer, primary_key: true
add :b, :integer, primary_key: true
Expand Down

0 comments on commit 24d6719

Please sign in to comment.