Skip to content

Commit

Permalink
remove _type attribute from nodes again
Browse files Browse the repository at this point in the history
we now are using node containers for these purposes. the attribute is not used anymore
  • Loading branch information
electronicbites committed Dec 22, 2024
1 parent 9494444 commit 2a4b9be
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 2a4b9be

Please sign in to comment.