How to migrate changes in a database who's name is user defined. i tried giving
data = request.data
cursor = connection.cursor()
cursor.execute("create database " + data["database"])
DATABASES["default"]["NAME"] = data["database"]
call_command("makemigrations")
call_command("migrate")
but this doesn't work. is there any way to do it?