That migration file looks correct to me. How did you determine the query didn't get run? Are you logging all queries?
On Sunday, October 11, 2015 at 9:30:19 AM UTC-7, pusateri wrote: > > I was trying to enable the unaccent postgresql extension using a database > migration as hinted here: > > > https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/lookups/#unaccent > > I created an empty migration and then added the UnaccentExtension > operation and ran the migration but the database command "CREATE EXTENSION > unaccent" did not get run on my database even though the migration ran > without error. > > Here is my migration file: > > # -*- coding: utf-8 -*- > from __future__ import unicode_literals > > from django.db import migrations, models > from django.contrib.postgres.operations import UnaccentExtension > > > class Migration(migrations.Migration): > > dependencies = [ > ('maps', '0010_auto_20151010_1756'), > ] > > operations = [ > UnaccentExtension(), > ] > > > > Any ideas on how to fix this migration file so that it works? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37fbc978-8563-4117-92c9-5b5dbc93710a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

