From dc790eaf86620508ba451c583f5914fab773ad8a Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 24 Jul 2022 17:17:01 -0500 Subject: [PATCH] delete separate migration files --- squarenotsquare/realm/migrations/v0.js | 3 --- squarenotsquare/realm/migrations/v1.js | 12 ------------ 2 files changed, 15 deletions(-) delete mode 100644 squarenotsquare/realm/migrations/v0.js delete mode 100644 squarenotsquare/realm/migrations/v1.js diff --git a/squarenotsquare/realm/migrations/v0.js b/squarenotsquare/realm/migrations/v0.js deleted file mode 100644 index 49b12f9..0000000 --- a/squarenotsquare/realm/migrations/v0.js +++ /dev/null @@ -1,3 +0,0 @@ -export function migrateV0(oldRealm, newRealm){ - //start with empty db -} \ No newline at end of file diff --git a/squarenotsquare/realm/migrations/v1.js b/squarenotsquare/realm/migrations/v1.js deleted file mode 100644 index 1b74f56..0000000 --- a/squarenotsquare/realm/migrations/v1.js +++ /dev/null @@ -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' - }); - } -} \ No newline at end of file