| 1 |
import django.contrib.postgres.fields |
| 2 |
from django.db import migrations, models |
| 3 |
|
| 4 |
|
| 5 |
class Migration(migrations.Migration): |
| 6 |
dependencies = [] |
| 7 |
|
| 8 |
operations = [ |
| 9 |
migrations.CreateModel( |
| 10 |
name="CharTextArrayIndexModel", |
| 11 |
fields=[ |
| 12 |
( |
| 13 |
"id", |
| 14 |
models.AutoField( |
| 15 |
verbose_name="ID", |
| 16 |
serialize=False, |
| 17 |
auto_created=True, |
| 18 |
primary_key=True, |
| 19 |
), |
| 20 |
), |
| 21 |
( |
| 22 |
"char", |
| 23 |
django.contrib.postgres.fields.ArrayField( |
| 24 |
models.CharField(max_length=10), db_index=True, size=100 |
| 25 |
), |
| 26 |
), |
| 27 |
("char2", models.CharField(max_length=11, db_index=True)), |
| 28 |
( |
| 29 |
"text", |
| 30 |
django.contrib.postgres.fields.ArrayField( |
| 31 |
models.TextField(), db_index=True |
| 32 |
), |
| 33 |
), |
| 34 |
], |
| 35 |
options={}, |
| 36 |
bases=(models.Model,), |
| 37 |
), |
| 38 |
] |