From 50bb0e07fae6bfd37d3069bd9b71cc3589d8d3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 17 Aug 2019 14:39:46 +0200 Subject: [PATCH] wip --- source/docs/storage-drivers.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/docs/storage-drivers.md b/source/docs/storage-drivers.md index 4a2f8b86..8057b62d 100644 --- a/source/docs/storage-drivers.md +++ b/source/docs/storage-drivers.md @@ -26,6 +26,13 @@ php artisan vendor:publish --provider='Stancl\Tenancy\TenancyServiceProvider' -- By default, all of your data will be stored in the JSON column `data`. If you want to store some data in a dedicated column (to leverage indexing, for example), add the column to the migration and to `tenancy.custom_columns` config. +Finally, run the migration: +``` +php artisan migrate +``` + +> Note: If you have existing migrations related to your app in `database/migrations`, move them to `database/migrations/tenant`. You can read more about tenant migrations [here](/docs/console-commands/#migrate). + ## Redis {#redis} The Redis storage driver lets you store tenant information in Redis, a high-performance key-value store.