Fixed migration so MySQL GIS test doesn't fail; refs #22001.
The test previously failed with the error: (1170, "BLOB/TEXT column 'name' used in key specification without a key length")
This commit is contained in:
parent
61fdb8d487
commit
c11b9346d4
|
@ -10,7 +10,7 @@ class Migration(migrations.Migration):
|
||||||
name='Neighborhood',
|
name='Neighborhood',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||||
('name', models.TextField(unique=True)),
|
('name', models.CharField(max_length=100, unique=True)),
|
||||||
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=4326, null=True)),
|
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=4326, null=True)),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
|
@ -22,7 +22,7 @@ class Migration(migrations.Migration):
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||||
('neighborhood', models.ForeignKey(to='gis.Neighborhood', to_field='id', null=True)),
|
('neighborhood', models.ForeignKey(to='gis.Neighborhood', to_field='id', null=True)),
|
||||||
('address', models.TextField()),
|
('address', models.CharField(max_length=100)),
|
||||||
('zip_code', models.IntegerField(null=True, blank=True)),
|
('zip_code', models.IntegerField(null=True, blank=True)),
|
||||||
('geom', django.contrib.gis.db.models.fields.PointField(srid=4326, null=True, geography=True)),
|
('geom', django.contrib.gis.db.models.fields.PointField(srid=4326, null=True, geography=True)),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue