Browse Source

Add migrations how-to (#622)

pull/1/head
rozetko 6 years ago committed by GitHub
parent
commit
567900c4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      server/src/migrations.ts

7
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';

Loading…
Cancel
Save