Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove _type attribute from nodes again #600

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading