django/tests/migrations/test_migrations_no_default/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

25 lines
664 B
Python

from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = []
operations = [
migrations.CreateModel(
name="SillyModel",
fields=[
(
"id",
models.BigAutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("silly_field", models.BooleanField(default=False)),
],
options={},
bases=(models.Model,),
),
]