django/tests/migrations/test_migrations_no_changes/0001_initial.py
Tim Graham 2a636118da
Some checks failed
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField.
2025-09-05 10:43:10 -04:00

23 lines
726 B
Python

from django.db import migrations, models
class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
"Author",
[
("id", models.BigAutoField(primary_key=True)),
("name", models.CharField(max_length=255)),
("slug", models.SlugField(null=True)),
("age", models.IntegerField(default=0)),
("silly_field", models.BooleanField(default=False)),
],
),
migrations.CreateModel(
"Tribble",
[
("id", models.BigAutoField(primary_key=True)),
("fluffy", models.BooleanField(default=True)),
],
),
]