RamyHakam / multi-tenancy-project-example

This is a simple example of using the https://github.com/RamyHakam/multi_tenancy_bundle
4 stars 3 forks source link

How do I add data in tenant database? #8

Open devjaythakkar opened 6 months ago

devjaythakkar commented 6 months ago

I have created new tenant database and all the migration run after that i want to add prefill data like when I create new tenant database then the tenant database contain all the records in user table from main database.

For example, I have user table in main database and it contain 50 records. Now, when i create new tenant database, it also contain that 50 records that i have in my user table. But i don't want to copy other table's records. Only user table records i want to copy in tenat database.

How do I achieve this?

RamyHakam commented 4 months ago

Hey, this is a new feature I'm working on, we can extend doctrine migration bundle to hander fixtures into tenants

nronsisvalle commented 3 months ago

Hello @RamyHakam i was just writing you for the same request, the it's better to use this one.

I'm looking for a way to load fixtures data into tenant DBs.

May i ask you if you are still working on that?

Thank you a lot