summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/array_index_migrations
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-08 12:09:55 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-08 12:15:38 +0100
commit6a682b38e75d4c975b4c4493565a59f1bc14397c (patch)
tree0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/postgres_tests/array_index_migrations
parente73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff)
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/postgres_tests/array_index_migrations')
-rw-r--r--tests/postgres_tests/array_index_migrations/0001_initial.py36
1 files changed, 25 insertions, 11 deletions
diff --git a/tests/postgres_tests/array_index_migrations/0001_initial.py b/tests/postgres_tests/array_index_migrations/0001_initial.py
index 505e53e4e8..5c74be326a 100644
--- a/tests/postgres_tests/array_index_migrations/0001_initial.py
+++ b/tests/postgres_tests/array_index_migrations/0001_initial.py
@@ -4,22 +4,36 @@ from django.db import migrations, models
class Migration(migrations.Migration):
- dependencies = [
- ]
+ dependencies = []
operations = [
migrations.CreateModel(
- name='CharTextArrayIndexModel',
+ name="CharTextArrayIndexModel",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('char', django.contrib.postgres.fields.ArrayField(
- models.CharField(max_length=10), db_index=True, size=100)
- ),
- ('char2', models.CharField(max_length=11, db_index=True)),
- ('text', django.contrib.postgres.fields.ArrayField(models.TextField(), db_index=True)),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "char",
+ django.contrib.postgres.fields.ArrayField(
+ models.CharField(max_length=10), db_index=True, size=100
+ ),
+ ),
+ ("char2", models.CharField(max_length=11, db_index=True)),
+ (
+ "text",
+ django.contrib.postgres.fields.ArrayField(
+ models.TextField(), db_index=True
+ ),
+ ),
],
- options={
- },
+ options={},
bases=(models.Model,),
),
]