mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
docs: update quickstart migrations notice (#260)
Added an additional sentence as the notice right now would maybe have people ignoring their own migrations.
This commit is contained in:
parent
7e8471dfbd
commit
3b5cd8fec9
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ Route::get('/', function () {
|
||||||
|
|
||||||
## Migrations {#migrations}
|
## 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.
|
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.
|
||||||
|
|
||||||
## Creating tenants {#creating-tenants}
|
## Creating tenants {#creating-tenants}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue