diff --git a/squarenotsquare/realm/migrations/v1.js b/squarenotsquare/realm/migrations/v1.js index e69de29..1b74f56 100644 --- a/squarenotsquare/realm/migrations/v1.js +++ b/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' + }); + } +} \ No newline at end of file