-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add migration to add override column to test groups table (#2338)
- Loading branch information
1 parent
db0890b
commit 647e89b
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
priv/repo/migrations/20231220204054_add_override_for_test_groups.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |