Files
backend/migrations/00001_enable_extensions.sql
2025-12-13 22:34:01 +05:00

23 lines
948 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- +goose Up
-- +goose StatementBegin
-- Включение расширения PostGIS для работы с геолокацией
CREATE EXTENSION IF NOT EXISTS postgis;
-- Включение расширения для генерации UUID (на случай будущего использования)
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Включение расширения для нечеткого поиска текста
CREATE EXTENSION IF NOT EXISTS pg_trgm;
COMMENT ON EXTENSION postgis IS 'PostGIS geometry and geography spatial types and functions';
COMMENT ON EXTENSION "uuid-ossp" IS 'UUID generation functions';
COMMENT ON EXTENSION pg_trgm IS 'Trigram similarity and distance functions for text search';
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP EXTENSION IF EXISTS pg_trgm;
DROP EXTENSION IF EXISTS "uuid-ossp";
DROP EXTENSION IF EXISTS postgis CASCADE;
-- +goose StatementEnd