Skip to content

Commit

Permalink
Merge pull request #565 from cocrafts/chore/update-migration-log
Browse files Browse the repository at this point in the history
chore: update log message
  • Loading branch information
ltminhthu authored Jun 13, 2024
2 parents 2f3be81 + df9b3f3 commit 65ff1a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/store/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export const migrateDatabase = async (
const storedVersion = setting?.config?.storageVersion || 0;
const latestVersion = getLatestMigrationVersion();

logger.info(storedVersion, latestVersion);

if (storedVersion < latestVersion) {
logger.info(`migrating from ${storedVersion} to ${latestVersion}`);
const newerVersionFilter = (i: Migration) =>
i.version > storedVersion && (i.scope === 'all' || i.scope === scope);

Expand Down

0 comments on commit 65ff1a7

Please sign in to comment.