From f32e37c8bcf59e49275d8654130fbff0a7ccb015 Mon Sep 17 00:00:00 2001 From: Mayel de Borniol Date: Thu, 25 Jan 2024 08:51:55 +0000 Subject: [PATCH] https://github.com/bonfire-networks/bonfire-app/issues/831 --- flavours/classic/config/bonfire_data.exs | 6 ++++++ flavours/classic/config/bonfire_ui.exs | 2 +- .../repo/migrations/20240121084501_label.exs | 13 +++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 flavours/classic/repo/migrations/20240121084501_label.exs diff --git a/flavours/classic/config/bonfire_data.exs b/flavours/classic/config/bonfire_data.exs index 8101a09b36c..5779c338920 100755 --- a/flavours/classic/config/bonfire_data.exs +++ b/flavours/classic/config/bonfire_data.exs @@ -849,6 +849,12 @@ config :bonfire_data_social, Boost, (unquote_splicing(edges)) end) +config :bonfire_label, Bonfire.Label, + code: + (quote do + (unquote_splicing(edges)) + end) + # has_one: [activity: {Activity, foreign_key: :object_id, references: :boosted_id}] # requires an ON clause config :bonfire_data_social, Like, diff --git a/flavours/classic/config/bonfire_ui.exs b/flavours/classic/config/bonfire_ui.exs index 7ddf97458e6..a1928d3a907 100755 --- a/flavours/classic/config/bonfire_ui.exs +++ b/flavours/classic/config/bonfire_ui.exs @@ -119,7 +119,7 @@ More details at https://bonfirenetworks.org", # post: Bonfire.UI.Social.WritePostContentLive, # message: Bonfire.UI.Social.WritePostContentLive, # category: Bonfire.Classify.Web.NewCategoryLive, - # label: Bonfire.Classify.Web.NewLabelLive, + # label: Bonfire.Label.Web.NewLabelLive, # page: Bonfire.Pages.Web.CreatePageLive, # section: Bonfire.Pages.Web.EditSectionLive # ], diff --git a/flavours/classic/repo/migrations/20240121084501_label.exs b/flavours/classic/repo/migrations/20240121084501_label.exs new file mode 100644 index 00000000000..78d9cf189f5 --- /dev/null +++ b/flavours/classic/repo/migrations/20240121084501_label.exs @@ -0,0 +1,13 @@ +defmodule Bonfire.Repo.Migrations.Label do + @moduledoc false + use Ecto.Migration + require Bonfire.Label.Migration + + def up do + Bonfire.Label.Migration.migrate_label() + end + + def down do + Bonfire.Label.Migration.migrate_label() + end +end