From 9e05d8261f222d5fc3d589307d458940a4728e8f Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 19 Sep 2018 12:10:20 -0400 Subject: [PATCH] include if exists and extension ltree --- db_deploy.sql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/db_deploy.sql b/db_deploy.sql index 3970cb3..6db7edf 100644 --- a/db_deploy.sql +++ b/db_deploy.sql @@ -1,6 +1,8 @@ BEGIN TRANSACTION; --\conninfo -drop schema evt cascade; +DROP SCHEMA IF EXISTS evt cascade; +DROP EXTENSION IF EXISTS ltree; +CREATE EXTENSION ltree; --------------------------build schema---------------------------------------------- CREATE SCHEMA evt; @@ -28,6 +30,12 @@ CREATE TABLE evt.acct ( COMMENT ON COLUMN evt.acct.acct IS 'account'; COMMENT ON COLUMN evt.acct.prop IS 'properties'; +------------------------fiscal periods------------------------ +CREATE TABLE evt.fspr ( + id ltree + ,dur tstzrange +); + --------------------------relational ledger------------------------------------------ CREATE TABLE evt.gl (