Skip to content

Commit

Permalink
Add migration to support configurable hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
garethbowen authored May 9, 2019
2 parents 1b46d08 + 80b3ed6 commit 95ceb08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/analytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const migrate = postgresUrl => {
connectionString: postgresUrl
});

return postgrator.migrate('201711101200');
return postgrator.migrate();
};

const update = async (db) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- filter contact docs into one place
CREATE OR REPLACE VIEW raw_contacts AS SELECT * FROM couchdb WHERE doc->>'type' IN ('contact', 'clinic', 'district_hospital', 'health_center', 'person');

0 comments on commit 95ceb08

Please sign in to comment.