Mix.Tenant (Tenant v2.0.0)
View SourceUseful functions for any tenant mix task.
Here is the list of tasks we have for now:
mix tenant.gen.migration
- generates a tenant migration for the repomix tenant.migrate
- runs the repository tenant migrationsmix tenant.migrations
- displays the repository migration statusmix tenant.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.
Generates a nicely formatted timestamp
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.
Generates a nicely formatted timestamp