mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
update users migration name
This commit is contained in:
parent
f5eb95e16b
commit
6184708cf0
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ Route::get('/', function () {
|
|||
|
||||
## Migrations {#migrations}
|
||||
|
||||
To have users in tenant databases, let's move the `users` table migration (the file `database/migrations/2014_10_12_000000_create_users_table.php` or similar) to `database/migrations/tenant`. This will prevent the table from being created in the central database, and it will be instead created in the tenant database when a tenant is created — thanks to our event setup. If you have any other migrations that are necessary for your application, move those migrations as well.
|
||||
To have users in tenant databases, let's move the `users` table migration (the file `database/migrations/0001_01_01_000000_create_users_table.php` or similar) to `database/migrations/tenant`. This will prevent the table from being created in the central database, and it will be instead created in the tenant database when a tenant is created — thanks to our event setup. If you have any other migrations that are necessary for your application, move those migrations as well.
|
||||
|
||||
## Creating tenants {#creating-tenants}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue