mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
# Settings for data migration from mysql legacy to new postgres database
|
|
|
|
from .settings import * # flake8: noqa
|
|
|
|
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', ]
|
|
|
|
MOMMY_CUSTOM_FIELDS_GEN = {
|
|
'django.db.models.ForeignKey': 'legacy.migration.make_with_log'
|
|
}
|
|
|