2021-11-14 07:55:49 +13:00
|
|
|
defmodule AshPostgres.TestRepo.Migrations.Install3Extensions do
|
2021-04-01 19:19:30 +13:00
|
|
|
@moduledoc """
|
|
|
|
Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback
|
|
|
|
|
|
|
|
This file was autogenerated with `mix ash_postgres.generate_migrations`
|
|
|
|
"""
|
|
|
|
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
|
|
|
execute("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"")
|
|
|
|
execute("CREATE EXTENSION IF NOT EXISTS \"pg_trgm\"")
|
2021-11-14 07:55:49 +13:00
|
|
|
execute("CREATE EXTENSION IF NOT EXISTS \"citext\"")
|
2021-04-01 19:19:30 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
# Uncomment this if you actually want to uninstall the extensions
|
2021-11-14 07:55:49 +13:00
|
|
|
# when this migration is rolled back:
|
|
|
|
# execute("DROP EXTENSION IF EXISTS \"uuid-ossp\"")
|
|
|
|
# execute("DROP EXTENSION IF EXISTS \"pg_trgm\"")
|
|
|
|
# execute("DROP EXTENSION IF EXISTS \"citext\"")
|
2021-04-01 19:19:30 +13:00
|
|
|
end
|
|
|
|
end
|