Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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")
  • Loading branch information...
commit c11b9346d4ebc10d8d98945a974016a5e85f25e6 1 parent 61fdb8d
@bigsassy bigsassy authored timgraham committed
View
4 django/contrib/gis/tests/gis_migrations/migrations/0001_initial.py
@@ -10,7 +10,7 @@ class Migration(migrations.Migration):
name='Neighborhood',
fields=[
('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)),
],
options={
@@ -22,7 +22,7 @@ class Migration(migrations.Migration):
fields=[
('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)),
- ('address', models.TextField()),
+ ('address', models.CharField(max_length=100)),
('zip_code', models.IntegerField(null=True, blank=True)),
('geom', django.contrib.gis.db.models.fields.PointField(srid=4326, null=True, geography=True)),
],
Please sign in to comment.
Something went wrong with that request. Please try again.