Files
self f050f58e85
CI / Test (push) Failing after 16s
feat: add Kobold commit chunks
Model dynamic dataset edits as synced commit chunks with bookmarks while keeping record projections as the local read model.\n\nPrivate/public visibility now only controls external tribe access; dataset metadata, resource definitions, and commits still publish through AshNostrSync for cluster-wide distribution.
2026-05-29 01:22:47 +02:00

28 lines
951 B
Elixir

defmodule TribeOne.TribesPlugin.Kobold.MigrationHelper do
@moduledoc false
@migrations [
{20_260_527_224_034, Tribes.Repo.Migrations.CreateKoboldFoundationExtensions1,
"../../priv/repo/migrations/20260527224034_create_kobold_foundation_extensions_1.exs"},
{20_260_527_224_035, Tribes.Repo.Migrations.CreateKoboldFoundation,
"../../priv/repo/migrations/20260527224035_create_kobold_foundation.exs"},
{20_260_528_225_536, Tribes.Repo.Migrations.AddKoboldCommitChunks,
"../../priv/repo/migrations/20260528225536_add_kobold_commit_chunks.exs"}
]
def migrate_up! do
Enum.each(@migrations, fn {version, module, path} ->
ensure_migration_loaded!(module, path)
Ecto.Migrator.up(Tribes.Repo, version, module, log: false)
end)
:ok
end
defp ensure_migration_loaded!(module, path) do
unless Code.ensure_loaded?(module) do
Code.require_file(Path.expand(path, __DIR__))
end
end
end