Skip to content

Commit

Permalink
Merge pull request #600 from podlove/task/remove-type-attribute-in-nodes
Browse files Browse the repository at this point in the history
remove _type attribute from nodes again
  • Loading branch information
electronicbites authored Dec 22, 2024
2 parents 9494444 + 2a4b9be commit 7f1dd33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/radiator/outline/node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ defmodule Radiator.Outline.Node do
field :content, :string
field :creator_id, :integer

field :_type, Ecto.Enum,
values: [:node, :global_root, :global_inbox, :episode_inbox, :episode_root]

field :level, :integer, virtual: true

belongs_to :outline_node_container, NodeContainer
Expand Down Expand Up @@ -48,7 +45,6 @@ defmodule Radiator.Outline.Node do
:parent_id,
:prev_id,
:show_id,
:_type,
:outline_node_container_id
])
|> put_uuid()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule Radiator.Repo.Migrations.RemoveTypeFromNodes do
use Ecto.Migration

def change do
alter table(:outline_nodes) do
remove :_type, :string, default: "node"
end
end
end

0 comments on commit 7f1dd33

Please sign in to comment.