v0.8.5 - allow file name prefix override @ `kysely <module>:make`.
Hey π
This patch release allows overriding migrate make
and seed make
output file prefixes in the config file.
To use Knex's timestamp prefixes:
import { defineConfig, getKnexTimestampPrefix } from "kysely-ctl";
export default defineConfig({
// ...
migrations: {
// ...
getMigrationPrefix: getKnexTimestampPrefix,
// ...
},
// ...
});
To not have prefixes for seed files:
export default defineConfig({
// ...
seeds: {
// ...
getSeedPrefix: () => '',
// ...
},
// ...
});
Full Changelog: v0.8.4...v0.8.5