Clean migs

This commit is contained in:
Mayel de Borniol 2022-05-06 13:10:33 +12:00
parent b8625e6299
commit ecc9a34e2f
12 changed files with 44 additions and 81 deletions

View file

@ -150,6 +150,7 @@ update: init update.repo build update.forks update.deps mix~deps.get mix~ecto.mi
update.app: update.repo update.deps ## Update the app and Bonfire extensions in ./deps
update.deps: ## Update Bonfire extensions in ./deps
@rm -rf deps/*/assets/pnpm-lock.yaml
@make --no-print-directory mix.remote~updates
update.repo:

View file

@ -1,4 +1,4 @@
lockfileVersion: 5.3
lockfileVersion: 5.4
specifiers:
'@alpinejs/collapse': ^3.9.1
@ -37,7 +37,7 @@ dependencies:
'@tailwindcss/typography': 0.5.0_tailwindcss@3.0.7
'@yaireo/tagify': 4.9.8_prop-types@15.8.1
alpinejs: 3.10.2
daisyui: 2.14.2_16a290f6d0e3717bf6d2667234aebd30
daisyui: 2.14.2_c2rjb5wq4nyxx5wsmzzdjlv5ga
nprogress: 0.2.0
phoenix: link:../deps/phoenix
phoenix_html: link:../deps/phoenix_html
@ -53,7 +53,7 @@ devDependencies:
postcss-cli: 8.3.1_postcss@8.4.5
postcss-import: 14.0.2_postcss@8.4.5
prop-types: 15.8.1
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
tailwindcss-debug-screens: 2.2.1_tailwindcss@3.0.7
packages:
@ -116,7 +116,7 @@ packages:
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1'
dependencies:
mini-svg-data-uri: 1.3.3
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
dev: false
/@tailwindcss/line-clamp/0.3.0_tailwindcss@3.0.7:
@ -124,7 +124,7 @@ packages:
peerDependencies:
tailwindcss: '>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1'
dependencies:
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
dev: false
/@tailwindcss/typography/0.5.0_tailwindcss@3.0.7:
@ -136,7 +136,7 @@ packages:
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
lodash.uniq: 4.5.0
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
dev: false
/@types/parse-json/4.0.0:
@ -650,7 +650,7 @@ packages:
engines: {node: '>=4'}
hasBin: true
/daisyui/2.14.2_16a290f6d0e3717bf6d2667234aebd30:
/daisyui/2.14.2_c2rjb5wq4nyxx5wsmzzdjlv5ga:
resolution: {integrity: sha512-/FxRBLC/xydIqxv+EJHfmmH+UndrwcaAxbWsS/oVLnoeOdb4MN4VlkJ3sYOYrl3tmw/D1L5Lp0PK07ebY0O6QA==}
peerDependencies:
autoprefixer: ^10.0.2
@ -661,7 +661,7 @@ packages:
css-selector-tokenizer: 0.8.0
postcss: 8.4.5
postcss-js: 4.0.0_postcss@8.4.5
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
transitivePeerDependencies:
- ts-node
dev: false
@ -2108,10 +2108,10 @@ packages:
peerDependencies:
tailwindcss: ^1.0 || ^2.0 || ^3.0.0-alpha.1 || ^3.0
dependencies:
tailwindcss: 3.0.7_16a290f6d0e3717bf6d2667234aebd30
tailwindcss: 3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga
dev: true
/tailwindcss/3.0.7_16a290f6d0e3717bf6d2667234aebd30:
/tailwindcss/3.0.7_c2rjb5wq4nyxx5wsmzzdjlv5ga:
resolution: {integrity: sha512-rZdKNHtC64jcQncLoWOuCzj4lQDTAgLtgK3WmQS88tTdpHh9OwLqULTQxI3tw9AMJsqSpCKlmcjW/8CSnni6zQ==}
engines: {node: '>=12.13.0'}
hasBin: true

View file

@ -9,7 +9,7 @@ import { InputSelectHooks } from "./../../../deps/bonfire_ui_common/assets/js/in
import { NotificationsHooks } from "./../../../deps/bonfire_ui_common/assets/js/notifications"
import { ThemeHooks } from "./../../../deps/bonfire_ui_social/assets/js/theme"
import { EditorCkHooks } from "./../../../deps/bonfire_editor_ck/assets/js/extension"
import { EditorQuillHooks } from "./../../../forks/bonfire_editor_quill/assets/js/extension"
import { EditorQuillHooks } from "./../../../deps/bonfire_editor_quill/assets/js/extension"
// import { GeolocateHooks } from "./../../../deps/bonfire_geolocate/assets/js/extension"

View file

@ -30,7 +30,7 @@ bonfire_classify = "https://github.com/bonfire-networks/bonfire_classify#main"
# bonfire_taxonomy_seeder = "https://github.com/bonfire-networks/bonfire_taxonomy_seeder#main"
bonfire_search = "https://github.com/bonfire-networks/bonfire_search#main"
bonfire_data_shared_user = "https://github.com/bonfire-networks/bonfire_data_shared_user#main"
bonfire_valueflows_observe = "https://github.com/bonfire-networks/bonfire_valueflows_observe#master"
bonfire_valueflows_observe = "https://github.com/bonfire-networks/bonfire_valueflows_observe#main"
absinthe_client = "https://github.com/bonfire-networks/absinthe_client#master"
flexto = "https://github.com/bonfire-networks/flexto#main"
bonfire_federate_activitypub = "https://github.com/bonfire-networks/bonfire_federate_activitypub#main"

View file

@ -0,0 +1,14 @@
defmodule Bonfire.Repo.Migrations.InitEdges do
use Ecto.Migration
alias Bonfire.Data.Edges.Migration
def up do
Migration.up()
end
def down do
Migration.down()
end
end

View file

@ -3,11 +3,9 @@ defmodule Bonfire.Repo.Migrations.Tagged do
def up do
Bonfire.Tag.Migrations.up()
Bonfire.Tag.Migrations.tagged_up()
end
def down do
Bonfire.Tag.Migrations.up()
Bonfire.Tag.Migrations.tagged_down()
Bonfire.Tag.Migrations.down()
end
end

View file

@ -1,11 +0,0 @@
defmodule Bonfire.Repo.Migrations.TaggedTimestamps do
use Ecto.Migration
def up do
Bonfire.Tag.Migrations.tagged_timestamps_up()
end
def down do
Bonfire.Tag.Migrations.tagged_timestamps_down()
end
end

View file

@ -1,13 +0,0 @@
defmodule Bonfire.Repo.Migrations.ImportReplied do
use Ecto.Migration
import Bonfire.Data.Social.Replied.Migration
def up do
migrate_replied(:up)
migrate_functions()
end
def down, do: migrate_replied(:down)
end

View file

@ -2,14 +2,11 @@ defmodule Bonfire.Repo.Migrations.ImportBoost do
use Ecto.Migration
import Bonfire.Data.Social.Boost.Migration
import Bonfire.Data.Social.BoostCount.Migration
def up do
migrate_boost()
migrate_boost_count()
end
def down do
migrate_boost_count()
migrate_boost()
end

View file

@ -2,15 +2,12 @@ defmodule Bonfire.Repo.Migrations.ImportFlag do
use Ecto.Migration
import Bonfire.Data.Social.Flag.Migration
import Bonfire.Data.Social.FlagCount.Migration
def up do
migrate_flag()
migrate_flag_count()
end
def down do
migrate_flag_count()
migrate_flag()
end

View file

@ -1,22 +0,0 @@
defmodule Bonfire.Social.Repo.Migrations.CountFunctions do
use Ecto.Migration
require Bonfire.Data.Social.Replied.Migration
def up do
Bonfire.Data.Social.FollowCount.Migration.migrate_functions()
Bonfire.Data.Social.BoostCount.Migration.migrate_functions()
Bonfire.Data.Social.LikeCount.Migration.migrate_functions()
Bonfire.Data.Social.Replied.Migration.migrate_functions()
end
def down do
Bonfire.Data.Social.FollowCount.Migration.migrate_functions()
Bonfire.Data.Social.BoostCount.Migration.migrate_functions()
Bonfire.Data.Social.LikeCount.Migration.migrate_functions()
Bonfire.Data.Social.Replied.Migration.migrate_functions()
end
end

View file

@ -1,6 +1,6 @@
%{
"absinthe": {:hex, :absinthe, "1.7.0", "36819e7b1fd5046c9c734f27fe7e564aed3bda59f0354c37cd2df88fd32dd014", [:mix], [{:dataloader, "~> 1.0.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 0.5 or ~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0 or ~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "566a5b5519afc9b29c4d367f0c6768162de3ec03e9bf9916f9dc2bcbe7c09643"},
"absinthe_client": {:git, "https://github.com/bonfire-networks/absinthe_client", "72eb64aa69431ec83e016a6d972959cf00a93b05", [branch: "master"]},
"absinthe_client": {:git, "https://github.com/bonfire-networks/absinthe_client", "5610d93f6d9e0544d1aee474f895795ceef28ecb", [branch: "master"]},
"absinthe_error_payload": {:hex, :absinthe_error_payload, "1.1.4", "502ff239148c8deaac028ddb600d6502d5be68d24fece0c93f4c3cf7e74c1a4d", [:make, :mix], [{:absinthe, "~> 1.3", [hex: :absinthe, repo: "hexpm", optional: false]}, {:ecto, "~> 3.1", [hex: :ecto, repo: "hexpm", optional: false]}], "hexpm", "9e262ef2fd4a2c644075e0cdde2573b1f713c0676ab905c8640eaa8a882b2aca"},
"absinthe_phoenix": {:hex, :absinthe_phoenix, "2.0.2", "e607b438db900049b9b3760f8ecd0591017a46122fffed7057bf6989020992b5", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:absinthe_plug, "~> 1.5", [hex: :absinthe_plug, repo: "hexpm", optional: false]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.13 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}], "hexpm", "d36918925c380dc7d2ed7d039c9a3b4182ec36723f7417a68745ade5aab22f8d"},
"absinthe_plug": {:hex, :absinthe_plug, "1.5.8", "38d230641ba9dca8f72f1fed2dfc8abd53b3907d1996363da32434ab6ee5d6ab", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "bbb04176647b735828861e7b2705465e53e2cf54ccf5a73ddd1ebd855f996e5a"},
@ -14,7 +14,7 @@
"benchee_json": {:hex, :benchee_json, "1.0.0", "cc661f4454d5995c08fe10dd1f2f72f229c8f0fb1c96f6b327a8c8fc96a91fe5", [:mix], [{:benchee, ">= 0.99.0 and < 2.0.0", [hex: :benchee, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "da05d813f9123505f870344d68fb7c86a4f0f9074df7d7b7e2bb011a63ec231c"},
"bonfire_api_graphql": {:git, "https://github.com/bonfire-networks/bonfire_api_graphql", "3232891b1333b38c7fb608704fc78c7600949687", [branch: "main"]},
"bonfire_boundaries": {:git, "https://github.com/bonfire-networks/bonfire_boundaries", "e401fbae3d7d3fc9cb85eba4bebe458369f4f14c", [branch: "main"]},
"bonfire_breadpub": {:git, "https://github.com/bonfire-networks/bonfire_breadpub", "843dd6fdab3cdd43d5cf73d4d5cc69315afdc676", [branch: "main"]},
"bonfire_breadpub": {:git, "https://github.com/bonfire-networks/bonfire_breadpub", "6317fc87fa24e17920f172596c28e2a686ce7456", [branch: "main"]},
"bonfire_classify": {:git, "https://github.com/bonfire-networks/bonfire_classify", "2206a822df6f312ee4a34f6ce5625c592f78aac1", [branch: "main"]},
"bonfire_common": {:git, "https://github.com/bonfire-networks/bonfire_common", "439daf59a75fbf626067d3a21c579a037d860fa7", [branch: "main"]},
"bonfire_data_access_control": {:git, "https://github.com/bonfire-networks/bonfire_data_access_control", "371c12e51db03dde11219b37ae2b768f6fd8aa2e", [branch: "main"]},
@ -26,27 +26,28 @@
"bonfire_data_social": {:git, "https://github.com/bonfire-networks/bonfire_data_social", "c5b0941a963e9cec5caf5c84586e177d340760e9", [branch: "main"]},
"bonfire_ecto": {:git, "https://github.com/bonfire-networks/bonfire_ecto", "88ad2c495c07a33d7df0f0b825e96c2b9cf1f2e0", [branch: "main"]},
"bonfire_editor_ck": {:git, "https://github.com/bonfire-networks/bonfire_editor_ck", "35a7a38544266edad9e5f2347f1fc1ed6bf123f8", [branch: "main"]},
"bonfire_editor_quill": {:git, "https://github.com/bonfire-networks/bonfire_editor_quill", "5b1f0796f2947bddbab680d93536c184d92c865e", [branch: "main"]},
"bonfire_editor_quill": {:git, "https://github.com/bonfire-networks/bonfire_editor_quill", "43c3f98165ad46f3e7ab73338700a4041be1f052", [branch: "main"]},
"bonfire_epics": {:git, "https://github.com/bonfire-networks/bonfire_epics", "34300053dbafa9b9cfede22bd4e6433d04344b69", [branch: "main"]},
"bonfire_fail": {:git, "https://github.com/bonfire-networks/bonfire_fail", "e010853d62ca93b81735f8b312a9d0584292184d", [branch: "main"]},
"bonfire_federate_activitypub": {:git, "https://github.com/bonfire-networks/bonfire_federate_activitypub", "19b3d956a089a5942d25a89488c9482806aabe32", [branch: "main"]},
"bonfire_files": {:git, "https://github.com/bonfire-networks/bonfire_files", "2484428f1fb4fff54a3fc8a9ae27f9b5deb711f4", [branch: "main"]},
"bonfire_geolocate": {:git, "https://github.com/bonfire-networks/bonfire_geolocate", "4b29b78a810db8ff12761ad3738c99f6ea46d327", [branch: "main"]},
"bonfire_invite_links": {:git, "https://github.com/bonfire-networks/bonfire_invite_links", "f1813026bcf07acda2259ef28d9240d7775f9fa2", [branch: "main"]},
"bonfire_geolocate": {:git, "https://github.com/bonfire-networks/bonfire_geolocate", "2cee85e8388ced8b075cf0d10e626dea539dfbf7", [branch: "main"]},
"bonfire_invite_links": {:git, "https://github.com/bonfire-networks/bonfire_invite_links", "22f19eb927c73acdf0410cb2c322b0cbbd60d315", [branch: "main"]},
"bonfire_mailer": {:git, "https://github.com/bonfire-networks/bonfire_mailer", "72ba1ac3f04cc9ea8d632346ca70f73bea17c77a", [branch: "main"]},
"bonfire_me": {:git, "https://github.com/bonfire-networks/bonfire_me", "b2bb83fad941508e1a3789741d6265435d58685b", [branch: "main"]},
"bonfire_me": {:git, "https://github.com/bonfire-networks/bonfire_me", "c44e63ca81c375198fb3a2ce974fdf5d87f98701", [branch: "main"]},
"bonfire_open_id": {:git, "https://github.com/bonfire-networks/bonfire_open_id", "16e86b55188b7cd06f1c96f7c358fc7302e31430", [branch: "main"]},
"bonfire_quantify": {:git, "https://github.com/bonfire-networks/bonfire_quantify", "49e5889d57fd868ce3c295261810bdd1c246d7ed", [branch: "main"]},
"bonfire_quantify": {:git, "https://github.com/bonfire-networks/bonfire_quantify", "d4c656c738d6ebb8859d804c8f3cb537aebdc49d", [branch: "main"]},
"bonfire_search": {:git, "https://github.com/bonfire-networks/bonfire_search", "98f185573056eadcc611602e948f0ab124b121c5", [branch: "main"]},
"bonfire_social": {:git, "https://github.com/bonfire-networks/bonfire_social", "4c1af44ec0ee59eaf0835a679787eaefa67183e9", [branch: "main"]},
"bonfire_social": {:git, "https://github.com/bonfire-networks/bonfire_social", "1f8736dc8300705468c2a0918f09d3eee7ed1f8c", [branch: "main"]},
"bonfire_tag": {:git, "https://github.com/bonfire-networks/bonfire_tag", "00def4119bf7d6af8820ad61faba0dc6c4bb36fd", [branch: "main"]},
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "537ba2ce119567ef1321383862299f61cc2ed696", [branch: "main"]},
"bonfire_ui_coordination": {:git, "https://github.com/bonfire-networks/bonfire_ui_coordination", "cff19cb2234065274d6e3179549d32e73ae0f06c", [branch: "main"]},
"bonfire_ui_kanban": {:git, "https://github.com/bonfire-networks/bonfire_ui_kanban", "af773698ba19859157f76e2f8e9da9a784efac26", [branch: "main"]},
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "b02fedcee5eb38ffc284d54aa8f1f2cd4fd8e979", [branch: "main"]},
"bonfire_ui_coordination": {:git, "https://github.com/bonfire-networks/bonfire_ui_coordination", "945bfb01adf9ce588a9d7b62efab9978c3ebf62b", [branch: "main"]},
"bonfire_ui_kanban": {:git, "https://github.com/bonfire-networks/bonfire_ui_kanban", "a89e9fb3c55593c6930a353512d653f9308654a6", [branch: "main"]},
"bonfire_ui_reflow": {:git, "https://github.com/bonfire-networks/bonfire_ui_reflow", "44ce7fe42a7e29e585034034d5c63e1997bb652a", [branch: "main"]},
"bonfire_ui_social": {:git, "https://github.com/bonfire-networks/bonfire_ui_social", "80bbc77066d40fadab1f639fc9bdac40f958c469", [branch: "main"]},
"bonfire_ui_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_ui_valueflows", "f70af46a5fa120bfc21231b018ce1b730e82b861", [branch: "main"]},
"bonfire_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_valueflows", "c50b411fc61840aa3e2748f4c1b9fbbc4aea2e4e", [branch: "main"]},
"bonfire_ui_social": {:git, "https://github.com/bonfire-networks/bonfire_ui_social", "5fde01f61519547c6acfc39f427a527105a8a97e", [branch: "main"]},
"bonfire_ui_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_ui_valueflows", "3c8fd7c891b93d1bd797454e5c72f333c861141d", [branch: "main"]},
"bonfire_upcycle": {:git, "https://gitlab.com/bonfire-networks/bonfire_upcycle", "bb3fb7f2ad8664290913cf0d76f877b7aac2f269", [branch: "master"]},
"bonfire_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_valueflows", "83d9148c94f876e946f6deba1fc67cfbbda6fd72", [branch: "main"]},
"bonfire_valueflows_observe": {:git, "https://github.com/bonfire-networks/bonfire_valueflows_observe", "b86eac238a4b9824ca94ea87dbbe8e9b41bef6dd", [branch: "main"]},
"bonfire_website": {:git, "https://github.com/bonfire-networks/bonfire_website", "47a0d80079c00814209e6d495530f6ad724b974c", [branch: "main"]},
"boruta": {:git, "https://gitlab.com/patatoid/boruta_auth", "3c1ebb9c9fd766237f4ec44156d3864ca213fea1", [branch: "master"]},
@ -137,6 +138,7 @@
"nimble_parsec": {:hex, :nimble_parsec, "1.2.3", "244836e6e3f1200c7f30cb56733fd808744eca61fd182f731eac4af635cc6d0b", [:mix], [], "hexpm", "c8d789e39b9131acf7b99291e93dae60ab48ef14a7ee9d58c6964f59efb570b0"},
"nodeinfo": {:git, "https://github.com/bonfire-networks/nodeinfo", "443ffd0a45f9963d94a4cd836064ffed8f37ec5d", [branch: "main"]},
"oban": {:hex, :oban, "2.8.0", "e44b19a30e30bb983099f55d59749316ff0eaf5dfef4214e1190738176653e50", [:mix], [{:ecto_sql, ">= 3.4.3", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.14", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "2954a2ac418f7cc4217c0772a3dd3a70e2966240583b97f4126a489e1300a573"},
"ok": {:hex, :ok, "2.3.0", "0a3d513ec9038504dc5359d44e14fc14ef59179e625563a1a144199cdc3a6d30", [:mix], [], "hexpm", "f0347b3f8f115bf347c704184b33cf084f2943771273f2b98a3707a5fa43c4d5"},
"openid_connect": {:hex, :openid_connect, "0.1.2", "166bb5c413c0967fe2c5fb1f3f3bfacd44803008593b587f55f7cb55b6e23124", [:mix], [{:httpoison, "~> 1.2.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:jason, "~> 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:jose, "~> 1.8", [hex: :jose, repo: "hexpm", optional: false]}], "hexpm", "c4b275526acf9ebbfef89db44619869869560a275dd5bb30524718e4696ab15a"},
"paginator": {:git, "https://github.com/bonfire-networks/paginator", "1754aebe2591785cc0cfd815e034ca1e1d9d24f7", [branch: "main"]},
"pane": {:hex, :pane, "0.4.1", "ca4275b5799066d52c857e7b0deb2feaba409d607419fe54cde056329d247a89", [:mix], [], "hexpm", "27a292ca86f52d4777422930c17fd4a12eaa930d86a6193665c452f94a04ff8a"},