From 567900c4a856776799ded110b15a3ef932eff2a1 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 2 May 2019 19:40:15 +0300 Subject: [PATCH] Add migrations how-to (#622) --- server/src/migrations.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/migrations.ts b/server/src/migrations.ts index cfa4a9d..fd83f33 100644 --- a/server/src/migrations.ts +++ b/server/src/migrations.ts @@ -1,3 +1,10 @@ +/* + How to add a migration: + - create migration function + - add it with the next revision number to REVISIONS Map + It will be automatically applied if actual DB revision < added revision +*/ + import { Collection, makeDBQ } from './services/data_service'; import * as _ from 'lodash';