Mix.Tenex (Tenex v1.0.4)
View SourceUseful functions for any tenex mix task.
Here is the list of tasks we have for now:
mix tenex.gen.migration
- generates a tenant migration for the repomix tenex.migrate
- runs the repository tenant migrationsmix tenex.migrations
- displays the repository migration statusmix tenex.rollback
- rolls back the repository tenant migrations
Summary
Functions
Ensures the given repository is started and running.
Ensures the migrations path exists for the given repo
.
Restarts the app if there was any migration command.
Runs the tenant migrations with the given args
and using
migrator
function.
Returns the private repository path relative to the source.
Functions
Ensures the given repository is started and running.
Ensures the migrations path exists for the given repo
.
Returns the path for the repo
tenant migrations folder if succeeds
or Mix.raise
's if it fails.
Restarts the app if there was any migration command.
Runs the tenant migrations with the given args
and using
migrator
function.
Returns the private repository path relative to the source.