MishkaInstaller.Helper.MnesiaAssistant.Schema (Mishka installer v0.1.6)

Copy Markdown View Source

Mnesia schema creation.

Summary

Functions

Creates the Mnesia schema on nodes (defaults to the current node). Delegates to :mnesia.create_schema/1.

Deletes the local disc schema on nodes so a node can (re)join a cluster from an empty schema. Mnesia must be stopped on those nodes. Delegates to :mnesia.delete_schema/1.

Functions

create_schema(nodes \\ [node()])

@spec create_schema([node()]) :: :ok | {:error, term()}

Creates the Mnesia schema on nodes (defaults to the current node). Delegates to :mnesia.create_schema/1.

Returns :ok or {:error, reason} (e.g. {:already_exists, node}).

delete_schema(nodes \\ [node()])

@spec delete_schema([node()]) :: :ok | {:error, term()}

Deletes the local disc schema on nodes so a node can (re)join a cluster from an empty schema. Mnesia must be stopped on those nodes. Delegates to :mnesia.delete_schema/1.