mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Add rename_app command and use it
This allows users to migrate from a pre-rename database without resetting their database, hopefully
This commit is contained in:
parent
dfc9262876
commit
1d0c0ae5c5
3 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'django.contrib.humanize',
|
'django.contrib.humanize',
|
||||||
|
'django_rename_app',
|
||||||
'bookwyrm',
|
'bookwyrm',
|
||||||
'celery',
|
'celery',
|
||||||
]
|
]
|
||||||
|
|
1
fr-dev
1
fr-dev
|
@ -48,6 +48,7 @@ case "$1" in
|
||||||
execweb python manage.py makemigrations
|
execweb python manage.py makemigrations
|
||||||
;;
|
;;
|
||||||
migrate)
|
migrate)
|
||||||
|
execweb python manage.py rename_app fedireads bookwyrm
|
||||||
execweb python manage.py migrate
|
execweb python manage.py migrate
|
||||||
;;
|
;;
|
||||||
bash)
|
bash)
|
||||||
|
|
|
@ -14,3 +14,4 @@ python-dateutil==2.8.1
|
||||||
redis==3.4.1
|
redis==3.4.1
|
||||||
requests==2.22.0
|
requests==2.22.0
|
||||||
responses==0.10.14
|
responses==0.10.14
|
||||||
|
django-rename-app==0.1.2
|
||||||
|
|
Loading…
Reference in a new issue