-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Multiple Schema migrates #31
Comments
Hey there, thanks for sharing your feedback.
No, there's no support for wildcard / "all tenant" operations. (The library isn't aware of how many tenants you have.) You would have to script this. |
Thank you in turn. Okay … understand. I’ll then explore a little … I have a “whitelist” of tenants in public schema (in a table separate from the Django project) which I can query for tenant listing. I tried making this list from the schema names at run time but could not get it to work.
Then 2nd option with wildcard aside perhaps :
TENANT_NAME= T1, T2, T3 etc ?
I doubt if I’ll ever have more than 30 or so Tenants.
Kind Regards
William
On 13 Aug 2021, at 17:15, mike w ***@***.***> wrote:
Hey there, thanks for sharing your feedback.
Is it possible to do multi schema updates at the same time for POSTGRESQL... e.g. TENANT_NAME=*?
No, there's no support for wildcard / "all tenant" operations. (The library isn't aware of how many tenants you have.) You would have to script this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#31 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABZTD27KHGJD53U55APML3TT4UZJVANCNFSM5CAPTGJA>.
|
Approx one year later and now working [a hobby project] to find a method for multi-schema migrations. With step assistance from various forums, I think the following script may assist db-multitenant users. I've done some basic testing but am not yet fully confident given my limited experience. Your trained eye will be appreciated. commands/all_tenant_migrate.py""" COMMAND : python manage.py all_tenant_migrate from django.conf import settings class Command(BaseCommand):
|
Thank you for this work ... I'm testing in an app at the moment with good success so far.
QUESTION: Is it possible to do multi schema updates at the same time for POSTGRESQL... e.g. TENANT_NAME=*?
The text was updated successfully, but these errors were encountered: