Skip to content

Commit

Permalink
feat: Add migration to add override column to test groups table (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson authored Jan 2, 2024
1 parent db0890b commit 647e89b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ config :phoenix, :stacktrace_depth, 20
config :phoenix, :plug_init_mode, :runtime

# Don't report issues with migrations from before we introduced excellent_migrations
config :excellent_migrations, start_after: "20230908133314"
config :excellent_migrations,
start_after: "20230908133314",
skip_checks: [:column_added_with_default]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule Skate.Repo.Migrations.AddOverrideForTestGroups do
use Ecto.Migration

def change do
# excellent_migrations:safety-assured-for-this-file raw_sql_executed
execute(
"CREATE TYPE test_group_override AS ENUM ('none', 'enabled', 'disabled')",
"DROP TYPE test_group_override"
)

alter table(:test_groups) do
add(:override, :test_group_override, default: "none", null: false)
end
end
end

0 comments on commit 647e89b

Please sign in to comment.