Skip to content

Commit

Permalink
run the new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
macrael committed Oct 30, 2023
1 parent ec9c526 commit 4913103
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/app-api/src/dataMigrations/dataMigrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { PrismaClient } from '@prisma/client'
import type { PrismaTransactionType } from '../postgres/prismaTypes'
import { migrate as migrate1 } from './migrations/20231026123042_test_migrator_works'
import { migrate as migrate2 } from './migrations/20231026124442_fix_rate_submittedat'
import { migrate as migrate3 } from './migrations/20231026124542_fix_erroneous_rates'

// MigrationType describes a single migration with a name and a callable function called migrateProto
interface DBMigrationType {
Expand Down Expand Up @@ -91,6 +92,12 @@ export async function migrate(
migrate: migrate2,
},
},
{
name: '20231026124542_fix_erroneous_rates',
module: {
migrate: migrate3,
},
},
]
// for (const migrationFile of migrationFiles) {
// // const fullPath = './migrations/0001_test_migration'
Expand Down

0 comments on commit 4913103

Please sign in to comment.