Skip to content

Commit

Permalink
Revert location migration
Browse files Browse the repository at this point in the history
  • Loading branch information
robertavram committed Mar 5, 2017
1 parent 5f30e97 commit 78343b4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions EquiTrack/locations/migrations/0003_add_trigram_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Migration(migrations.Migration):
]

operations = [
# migrations.RunSQL(
# sql="CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA pg_catalog",
# reverse_sql="DROP EXTENSION IF EXISTS pg_trgm CASCADE",
# ),
# migrations.RunSQL(
# sql="CREATE INDEX IF NOT EXISTS index_locations_on_name_trigram on locations_location USING gin (name gin_trgm_ops)",
# reverse_sql="DROP INDEX IF EXISTS index_locations_on_name_trigram"
# ),
migrations.RunSQL(
sql="CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA pg_catalog",
reverse_sql="DROP EXTENSION IF EXISTS pg_trgm CASCADE",
),
migrations.RunSQL(
sql="CREATE INDEX IF NOT EXISTS index_locations_on_name_trigram on locations_location USING gin (name gin_trgm_ops)",
reverse_sql="DROP INDEX IF EXISTS index_locations_on_name_trigram"
),
]

0 comments on commit 78343b4

Please sign in to comment.