kobotoolbox / kobo-helm-chart

This project is new. We do not yet release stable versions.
GNU Affero General Public License v3.0
4 stars 9 forks source link

Install script to create database #60

Open bufke opened 9 months ago

bufke commented 9 months ago

KoboToolbox requires two databases. Most users would deploy one postgresql server and create the second database. It would be nice if this could be automated. It should default to disabled.

Requirements:

Questions:

  1. Should it create both?
  2. Is there a way to set the DB string just once? Often it's set multiple times.

Bonus requirements:

import pymongo
settings.MONGO_DB.instances.create_index([("_userform_id", pymongo.ASCENDING)])
settings.MONGO_DB.instances.create_index([("_userform_id", pymongo.ASCENDING), ("_id", pymongo.DESCENDING)])