Browse Source

migration v1

pull/1/head
Tim Glasgow 2 years ago
parent
commit
1ca2b684e7
  1. 12
      squarenotsquare/realm/migrations/v1.js

12
squarenotsquare/realm/migrations/v1.js

@ -0,0 +1,12 @@
import {System} from '../entities/System';
import uuid from 'uuid';
export function migrateV1(oldRealm, newRealm){
if (oldRealm.schemaVersion === 0){
newRealm.create(System.name, {
id: uuid.v4(),
key: 'username',
value: 'changeme'
});
}
}
Loading…
Cancel
Save