include if exists and extension ltree

This commit is contained in:
Paul Trowbridge 2018-09-19 12:10:20 -04:00
parent ee5da3738d
commit 9e05d8261f

View File

@ -1,6 +1,8 @@
BEGIN TRANSACTION; BEGIN TRANSACTION;
--\conninfo --\conninfo
drop schema evt cascade; DROP SCHEMA IF EXISTS evt cascade;
DROP EXTENSION IF EXISTS ltree;
CREATE EXTENSION ltree;
--------------------------build schema---------------------------------------------- --------------------------build schema----------------------------------------------
CREATE SCHEMA evt; CREATE SCHEMA evt;
@ -28,6 +30,12 @@ CREATE TABLE evt.acct (
COMMENT ON COLUMN evt.acct.acct IS 'account'; COMMENT ON COLUMN evt.acct.acct IS 'account';
COMMENT ON COLUMN evt.acct.prop IS 'properties'; COMMENT ON COLUMN evt.acct.prop IS 'properties';
------------------------fiscal periods------------------------
CREATE TABLE evt.fspr (
id ltree
,dur tstzrange
);
--------------------------relational ledger------------------------------------------ --------------------------relational ledger------------------------------------------
CREATE TABLE evt.gl ( CREATE TABLE evt.gl (