django-atomic-migrations-0.1.7
توضیحات
Wraps migration step runs in transactions in Django
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-atomic-migrations-0.1.7 |
| نام | django-atomic-migrations |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Richard Kojedzinszky |
| ایمیل نویسنده | richard@kojedz.in |
| آدرس صفحه اصلی | https://github.com/rkojedzinszky/django-atomic-migrations |
| آدرس اینترنتی | https://pypi.org/project/django-atomic-migrations/ |
| مجوز | - |
# Django Atomic Migrations
[](https://drone.srv.kojedz.in/krichy/django-atomic-migrations)
This small package ensures that Django's migration tracking model has an
unique index for applied migrations, and also ensures that migrations
steps are applied in transactions. This is known to work with
PostgreSQL.
## Usage
Install the package:
```bash
$ pip install django-atomic-migrations
```
Then, add the application to `INSTALLED_APPS` in your Django project:
```
INSTALLED_APPS = [
...
'django_atomic_migrations.AtomicMigrations',
...
]
```
If your project's database already exists, you should run
```bash
$ python manage.py add-migrations-constraint
```
to create the missing unique constraint.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl django-atomic-migrations-0.1.7:
pip install django-atomic-migrations-0.1.7.whl
نصب پکیج tar.gz django-atomic-migrations-0.1.7:
pip install django-atomic-migrations-0.1.7.tar.gz