This module is intended for use with Golemio services. It only contains shared database migrations.
Installation
We recommend to install this module as an exact version.
npm install --save-exact @golemio/schema-definitions@latest
npm install --save-exact @golemio/schema-definitions@dev
Description
Shared database Migrations of the Golemio Data Platform System.
Local installation
Prerequisites
Install dependencies
Install all dependencies using command
npm install
from the application's root directory.
Database Migrations
For database migrations set the env variables POSTGRES_CONN
or create .env file (copy .env.template) and set the configuration variables and then run:
npm run migrate-db
or
for Postgre:
npm run migrate-postgres-db
For Postgre the database has to exist.
For more informations read db-migrate docs and migration manual in docs/migrations.md
file.
Contribution guidelines
Please read CONTRIBUTING.md.