jamlen
06/13/2022, 12:24 PMmigrations
being a string to a path. I need to be able to know which database is targeted for migration and then set the path for the migrations accordingly. Something like this
export async function RDSStack({ stack, app }: StackContext) {
const cluster = new RDS(stack, "RDSCluster", {
engine: "postgresql10.14",
defaultDatabaseName: 'postgres',
migrations: (dbname: string) => new FileMigrationProvider(`./migrations/${dbname}`)
})
return { cluster }
@Frank @thdxr is this something that could be looked at or is there way that I can tell the underlying Kysely to use a custom MigrationProvider
class?jamlen
06/13/2022, 12:26 PMthdxr
06/13/2022, 12:26 PMjamlen
06/13/2022, 12:31 PMFrank