From f47d13e8157d4e9be00ec850e99bc3cf67fab94a Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 17 Sep 2018 23:38:33 -0400 Subject: [PATCH] rearrange gl table --- db_deploy.sql | 3 ++- schema/tables/gl.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/db_deploy.sql b/db_deploy.sql index fee4ad3..9503177 100644 --- a/db_deploy.sql +++ b/db_deploy.sql @@ -35,7 +35,8 @@ CREATE TABLE evt.gl ( ,bpr_id INT REFERENCES evt.bpr (id) ,acct text REFERENCES evt.acct (acct) ,amount numeric (12,2) - ,bpr jsonb + ,gl_line INT + ,bpr_extract JSONB ); COMMENT ON COLUMN evt.gl.bpr_id IS 'id of initial basic pecuniary record'; COMMENT ON COLUMN evt.gl.acct IS 'account code'; diff --git a/schema/tables/gl.sql b/schema/tables/gl.sql index cae7ed3..9fde7fc 100644 --- a/schema/tables/gl.sql +++ b/schema/tables/gl.sql @@ -5,7 +5,8 @@ CREATE TABLE evt.gl ( ,bpr_id INT REFERENCES evt.bpr (id) ,acct text REFERENCES evt.acct (acct) ,amount numeric (12,2) - ,bpr jsonb + ,gl_line INT + ,bpr_extract JSONB ); COMMENT ON COLUMN evt.gl.bpr_id IS 'id of initial basic pecuniary record'; COMMENT ON COLUMN evt.gl.acct IS 'account code';