Packages
A Fair Source multi-agent runtime with deterministic agent scoring and replayable run history.
Retired package: Deprecated - superseded — operator console moved to the Syntropy app
Current section
Files
Jump to
Current section
Files
priv/repo/migrations/20260420110000_scope_knowledge_items_by_node.exs
defmodule Syntropy.Repo.Migrations.ScopeKnowledgeItemsByNode do
use Ecto.Migration
def up do
alter table(:knowledge_items) do
add :node_id, :string, null: false, default: "local"
end
drop_if_exists index(:knowledge_items, [:agent_id, :item],
name: :knowledge_items_agent_id_item_index
)
create index(:knowledge_items, [:node_id])
create unique_index(:knowledge_items, [:node_id, :agent_id, :item],
name: :knowledge_items_node_id_agent_id_item_index
)
end
def down do
raise "ScopeKnowledgeItemsByNode is forward-only"
end
end