https://github.com/botify-labs/django-better-migrations
https://github.com/botify-labs/django-better-migrations
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/botify-labs/django-better-migrations
- Owner: botify-labs
- License: mit
- Created: 2017-12-16T10:28:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-11-10T19:12:17.000Z (7 months ago)
- Last Synced: 2025-11-10T21:10:54.013Z (7 months ago)
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 5
- Watchers: 0
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
Django Better Migrations
========================
[](https://pypi.org/pypi/django-better-migrations)
[](https://github.com/botify-labs/django-better-migrations/)
[](https://github.com/botify-labs/django-better-migrations/actions?workflow=CI)
[](https://github.com/botify-labs/django-better-migrations/blob/main/LICENSE)
This project aims at providing improvements to Django's default migration system.
More informations in the documentation, see "docs/" folder.
Example
-------
See below migration, generated automatically via `manage.py makemigrations`:
```python
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-12-01 00:00
from __future__ import unicode_literals
from django.db import migrations, models
# Generated SQL code (sqlite):
#
# --
# -- Create model Person
# --
# CREATE TABLE "example_app_person" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" varchar(100) NOT NULL);
#
# Check results:
# CHECK OK: No ALTER TABLE ADD COLUMN with non-NULL constraint
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
],
),
]
```
License
-------
MIT, see `LICENSE` file.