mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
[bug] Unable to run if postgre unaccent was already active
This commit is contained in:
parent
98edd345b1
commit
a12c26e06c
@ -2,8 +2,8 @@ class CreateUnaccentFunction < ActiveRecord::Migration
|
|||||||
|
|
||||||
# PostgreSQL only
|
# PostgreSQL only
|
||||||
def up
|
def up
|
||||||
execute 'CREATE EXTENSION unaccent;'
|
execute 'CREATE EXTENSION IF NOT EXISTS unaccent;'
|
||||||
execute 'CREATE EXTENSION pg_trgm;'
|
execute 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'
|
||||||
execute "CREATE OR REPLACE FUNCTION f_unaccent(text)
|
execute "CREATE OR REPLACE FUNCTION f_unaccent(text)
|
||||||
RETURNS text AS
|
RETURNS text AS
|
||||||
$func$
|
$func$
|
||||||
|
Loading…
x
Reference in New Issue
Block a user