include if exists and extension ltree
This commit is contained in:
parent
ee5da3738d
commit
9e05d8261f
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user