Skip to main content

Django Better Migrations

Deployed to PyPI GitHub Repository Continuous Integration MIT 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:

# -*- 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.

Metadata

Release files for django-better-migrations 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-better-migrations 1.0.3
File Size Uploaded
django_better_migrations-1.0.3.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-better-migrations 1.0.3
File Interpreter ABI Platform
django_better_migrations-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / django_better_migrations-1.0.3.tar.gz

Download URL django_better_migrations-1.0.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f974df5def9da521adbd9bde54e10a5e2bd4a8d9cae4feb209a84e42687ca56a
BLAKE2b-256 checksum
How to use checksums
7d666732d2bbfe695c02eaf49f948a88b3df357897ef1dcbe0d219a5a4550cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1040-azure

Release files / django_better_migrations-1.0.3-py3-none-any.whl

Download URL django_better_migrations-1.0.3-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bcee5f16de488b30dafa3299200a6123b10df709bfce720277f6b6e19e341d8
BLAKE2b-256 checksum
How to use checksums
f8536075ed36b6426c508c1bdb630f582d0d2b9fd29ab2b25841f91495b0a936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1040-azure

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page