This is an interesting problem.

So basically you need to migrate the entire schema upon the creation of a new 
user? Can the schema change for a new user, or will it always be the exact 
same? 

>From what I understand, you will need to ask the user for credentials for 
>database connection, and then try to see if there is a way to migrate the 
>models from your django code rather than the command line. I’m assuming you 
>don’t want to migrate every single model for every single user, but I know 
>there are ways to only migrate specific models though I forget exactly how.

Sent from my iPhone

> On Nov 8, 2018, at 3:26 AM, JAGADESH M <jagades...@gmail.com> wrote:
> 
> we are doing SAAS model product. here we need to maintain one database with 
> multiple tables this will be the constant and my main database. since we are 
> doing it as SAAS we need to replicate the same for n number of users. so when 
> new user comes to registration, i need to make copy of main database which 
> will have all the table structure. so when the user login
> to his account by default it has to lookup the database which has been 
> created during his/her registration time. i have no idea to go forward can 
> anyone help me to fix this issue. Thank you.
> 
> 
> 
> regards,
> Jagadesh
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/5a335a17-ab5a-4759-ad85-5e47e2e9914f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/035FAF4F-3D96-48F5-8117-EFFFE6A5B909%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to