Skip to content

Commit bf8f069

Browse files
committed
doc: reset the package name to original
1 parent 7dca51a commit bf8f069

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# gg-django-replace-migrations
1+
# django-replace-migrations
22

33
This package offers a new django command: `replace_all_migrations`.
44
It can be use to get rid of old migrations as an alternative to django's `squashmigration` command.
55

66
## Reasoning
77

88
In big django projects, migration files easily pile up and get an increasing problem.
9+
910
Django comes with the squashmigration command - however, it is hard to handle because of multiple reasons. Especially, it can not handle circular dependencies - they must be resolved [manually and with great care](https://stackoverflow.com/questions/37711402/circular-dependency-when-squashing-django-migrations).
1011

1112
One possible solution is to:
@@ -16,7 +17,7 @@ One possible solution is to:
1617

1718
This workflow might work fine, if you have only few (production) servers - however, it becomes hard, when you have many environments with different versions of your application.
1819

19-
gg-django-replace-migrations also creates new initial migrations, but also, additionally, it adds the already existing migrations to the `replace` list of the new migration (That list is used by `squashmigrations` as well). By doing that, faking migrations is not needed anymore.
20+
django-replace-migrations also creates new initial migrations, but also, additionally, it adds the already existing migrations to the `replace` list of the new migration (That list is used by `squashmigrations` as well). By doing that, faking migrations is not needed anymore.
2021

2122
## Warning
2223

@@ -29,7 +30,7 @@ Before you install, read the workflow below. You need to have the app installed
2930
Run
3031

3132
```
32-
pip install gg-django-replace-migrations
33+
pip install django-replace-migrations
3334
```
3435

3536
and add `gg_django_replace_migrations` to your list of installed apps.
@@ -73,7 +74,7 @@ The workflow for this would be:
7374
- commit and note the commit hash
7475
- `git checkout 2.0`
7576
- create a new branch `git checkout -b 2-0-replace-migrations`
76-
- Install `gg-django-replace-migration` here.
77+
- Install `django-replace-migration` here.
7778
- run `./manage.py replace_all_migrations --name replace_2_0 app1, app2, ...` ([How to get all apps](https://stackoverflow.com/questions/4111244/get-a-list-of-all-installed-applications-in-django-and-their-attributes))
7879
- commit and note the commit hash
7980
- `git checkout [your main/feature branch]`

0 commit comments

Comments
 (0)