mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 05:31:41 +08:00
11 lines
232 B
SQL
11 lines
232 B
SQL
DO
|
|
$BODY$
|
|
BEGIN
|
|
IF NOT EXISTS(SELECT 1
|
|
FROM pg_type
|
|
WHERE typname = 'field_index_type') THEN
|
|
CREATE TYPE field_index_type AS ENUM ('TIME-VALUE', 'VALUE-TIME');
|
|
END IF;
|
|
END
|
|
$BODY$;
|