Skip to content

v0.1.12

Choose a tag to compare

@coo1estguy coo1estguy released this 07 Oct 16:40
· 7 commits to main since this release

馃摝 npm package: https://www.npmjs.com/package/notifkit/v/0.1.12

What's New in v0.1.12

  • Custom PostgreSQL Schema: Install notifkit into a schema other than public with DB_SCHEMA (or
    dbOptions.schema on NotifkitServer), so it can share a database with an application that already owns public. Migrations create the schema, put every table and enum type in it, keep their own migration
    journal there, and verify afterwards that every table landed in the right place. Defaults to public, so existing installs are unaffected. See Installing into a custom PostgreSQL
    schema
    . Thanks
    @Baskins! (#5)
  • notifkit-migrate CLI: Run migrations in production with npx notifkit-migrate. It reads
    DATABASE_URL and DB_SCHEMA, is safe to run on every deploy, and exits non-zero on failure so it can
    gate a deploy. Use it instead of pointing drizzle-kit at node_modules/notifkit/drizzle, which ignores DB_SCHEMA.
  • notifkit-create-admin now honours DB_SCHEMA.

Warning

Don't set DB_SCHEMA on an install that already runs in public without moving its tables first, or
notifkit will start against empty tables. The README has the steps.

Install

npm install notifkit@0.1.12