mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
10 years ago
9 changed files with 42 additions and 25 deletions
@ -0,0 +1,6 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# All tests under this directory are excluded in default pytest.ini |
||||
|
# To run them use this script in this directory |
||||
|
|
||||
|
py.test --ds=sapl.legacy_migration_settings |
@ -0,0 +1,2 @@ |
|||||
|
-r dev-requirements.txt |
||||
|
mysqlclient |
@ -0,0 +1,18 @@ |
|||||
|
# Settings for data migration from mysql legacy to new postgres database |
||||
|
|
||||
|
from .settings import * |
||||
|
|
||||
|
INSTALLED_APPS += ( |
||||
|
'legacy', # legacy reversed model definitions |
||||
|
) |
||||
|
|
||||
|
DATABASES['legacy'] = { |
||||
|
'ENGINE': 'django.db.backends.mysql', |
||||
|
'NAME': 'sapl25', |
||||
|
'USER': 'root', |
||||
|
'PASSWORD': 'admin', |
||||
|
'HOST': 'localhost', # Or an IP Address that your DB is hosted on |
||||
|
'PORT': '3306', |
||||
|
} |
||||
|
|
||||
|
DATABASE_ROUTERS = ['legacy.router.LegacyRouter', ] |
Loading…
Reference in new issue