diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/convert-from-entitydb-to-sql.py | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/scripts/convert-from-entitydb-to-sql.py b/scripts/convert-from-entitydb-to-sql.py index 43a51cf7..4e82783c 100644 --- a/scripts/convert-from-entitydb-to-sql.py +++ b/scripts/convert-from-entitydb-to-sql.py @@ -69,16 +69,23 @@ for table in tables: from django.conf import settings -settings.configure(DATABASES = { "default" : { - "ENGINE" : "django.db.backends.mysql", - "NAME" : sql_database, - "USER" : sql_username, - "PASSWORD" : sql_password, - "HOST" : "", - "PORT" : "" }}) +settings.configure( + DATABASES = { "default" : { + "ENGINE" : "django.db.backends.mysql", + "NAME" : sql_database, + "USER" : sql_username, + "PASSWORD" : sql_password, + "HOST" : "", + "PORT" : "" }}, + INSTALLED_APPS = ("rpki.irdb",), +) import rpki.irdb +import django.core.management + +django.core.management.call_command("syncdb", verbosity = 4) + def ns(tag): return "{http://www.hactrn.net/uris/rpki/myrpki/}" + tag |