From a71dc1a08346174c28c6e36bc0dbdbf814ca141a Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 20 Sep 2018 20:03:08 -0400 Subject: [PATCH] change extension handling --- db_deploy.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db_deploy.sql b/db_deploy.sql index 0e66409..18de438 100644 --- a/db_deploy.sql +++ b/db_deploy.sql @@ -2,10 +2,9 @@ BEGIN TRANSACTION; --\conninfo --------------------------build schema---------------------------------------------- -DROP EXTENSTION IF EXISTS ltree; -CREATE EXTENSTION ltree; DROP SCHEMA IF EXISTS evt cascade; CREATE SCHEMA evt; +CREATE EXTENSION IF NOT EXISTS ltree; COMMENT ON SCHEMA evt IS 'event log'; --------------------------event log table------------------------------------------- @@ -34,7 +33,7 @@ COMMENT ON COLUMN evt.acct.prop IS 'properties'; CREATE TABLE evt.fspr ( id ltree ,dur tstzrange -) +); COMMENT ON COLUMN evt.fspr.id IS 'fiscal period'; COMMENT ON COLUMN evt.fspr.dur IS 'duration of period as timestamp range';