-- migrate:up

CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION IF NOT EXISTS postgis;

CREATE SCHEMA IF NOT EXISTS events;
CREATE SCHEMA IF NOT EXISTS state;
CREATE SCHEMA IF NOT EXISTS domain;
CREATE SCHEMA IF NOT EXISTS geo;
CREATE SCHEMA IF NOT EXISTS serve;
CREATE SCHEMA IF NOT EXISTS slo;
CREATE SCHEMA IF NOT EXISTS ops;
CREATE SCHEMA IF NOT EXISTS auth;

-- migrate:down

DROP SCHEMA IF EXISTS auth CASCADE;
DROP SCHEMA IF EXISTS ops CASCADE;
DROP SCHEMA IF EXISTS slo CASCADE;
DROP SCHEMA IF EXISTS serve CASCADE;
DROP SCHEMA IF EXISTS geo CASCADE;
DROP SCHEMA IF EXISTS domain CASCADE;
DROP SCHEMA IF EXISTS state CASCADE;
DROP SCHEMA IF EXISTS events CASCADE;
