Lockspire. Install. Migrations
(lockspire v1.6.1)
Copy Markdown
Safely plans and applies Lockspire's packaged Ecto migrations to a host project.
Planning is read-only: it validates the complete packaged and host inventories before reporting any file that can be copied. Applying an approved plan copies only files that were absent during preflight and never overwrites a host-owned migration.
Summary
Types
@type operation_status() :: :copy | :unchanged
Functions
Copies only the missing files from a successful plan/1 result.
Before making the destination directory, application confirms that both source and destination inventory still match the approved plan. This preserves the host's no-overwrite guarantee if files change between preflight and apply.
Returns a complete, read-only copy plan for packaged migrations.
:source_root and :project_root are injectable for tests. In normal use they
default to Lockspire's packaged migrations and the current Mix project.