Browse Source

delete separate migration files

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

3
squarenotsquare/realm/migrations/v0.js

@ -1,3 +0,0 @@
export function migrateV0(oldRealm, newRealm){
//start with empty db
}

12
squarenotsquare/realm/migrations/v1.js

@ -1,12 +0,0 @@
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