Skip to content

v0.8.5 - allow file name prefix override @ `kysely <module>:make`.

Compare
Choose a tag to compare
@igalklebanov igalklebanov released this 05 Jun 22:14
· 48 commits to main since this release

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