Tim Glasgow
2 years ago
2 changed files with 0 additions and 15 deletions
@ -1,3 +0,0 @@ |
|||||
export function migrateV0(oldRealm, newRealm){ |
|
||||
//start with empty db
|
|
||||
} |
|
@ -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…
Reference in new issue