mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
[2.x] Allow automatic seeding after automatic migrations (#160)
This commit is contained in:
parent
3dbbbe8b24
commit
d5b01219fd
4 changed files with 113 additions and 6 deletions
|
|
@ -91,6 +91,10 @@ return [
|
|||
'home_url' => '/app',
|
||||
'queue_database_creation' => false,
|
||||
'migrate_after_creation' => false, // run migrations after creating a tenant
|
||||
'seed_after_migration' => false, // should the seeder run after automatic migration
|
||||
'seeder_parameters' => [
|
||||
'--class' => 'DatabaseSeeder', // root seeder class to run after automatic migrations, eg: 'DatabaseSeeder'
|
||||
],
|
||||
'queue_database_deletion' => false,
|
||||
'delete_database_after_tenant_deletion' => false, // delete the tenant's database after deleting the tenant
|
||||
'unique_id_generator' => Stancl\Tenancy\UniqueIDGenerators\UUIDGenerator::class,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue