carecentive

Update Notes

0.9.4

Carecentive 0.9.4 updated all dependencies and added the ability to use various database adapters via .env.

Therefore, minor changes in your backend application are necessary:

  • Updates the constants in the .env file: From MYSQL_USER, MYSQL_PASSWORD, etc. to DATABASE_USER, DATABASE_PASSWORD, etc. - do not forget DATABASE_PORT and to specify DB_CLIENT=mysql2
  • Change and adapt the following files: database/config.js, knexfile.js - see this commit for details
  • Modify app.js accordingly - see the commit for details

0.9.2

You may receive errors indicating that no ORM was found/knex was not bound to Objection.js: "no database connection available for a query. you need to bind the model class or the query to a knex instance".

In this case, please replace:

const { Model } = require('objection');

with

const { Model } = require('@carecentive/carecentive-core/models/ORM');

This may especially apply to your models, i.e. in the /models folder.