summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/array_index_migrations
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-03 20:24:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch)
treef0506b668a013d0063e5fba3dbf4863b466713ba /tests/postgres_tests/array_index_migrations
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
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,),
),
]