Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Releases: Errorname/prisma-multi-tenant

2.0.0-beta.2

11 Apr 12:53
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release

Note: This version is compatible with @prisma/[email protected]

New command: Eject

prisma-multi-tenant eject

This command helps you remove prisma-multi-tenant from your application.

Compatibility with Prisma Beta.2

Upgraded all occurences of @prisma/cli to 2.0.0-beta.2

2.0.0-beta.1

31 Mar 11:33
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

Note: This version is compatible with @prisma/[email protected]

Compatibility with Beta.1

Upgraded all occurences of @prisma/cli to 2.0.0-beta.1

2.0.0-alpha25

27 Mar 15:54
Compare
Choose a tag to compare
2.0.0-alpha25 Pre-release
Pre-release

Note: This version is compatible with @prisma/[email protected]

Compatibility with Preview025

Replaced occurences of prisma2 to @prisma/cli

Other improvements

  • Improved test utils
  • Add version compatibility check when running cli

2.0.0-alpha24.1

27 Mar 12:59
39e413c
Compare
Choose a tag to compare
2.0.0-alpha24.1 Pre-release
Pre-release

Note: This version is compatible with [email protected]

Tenant creation now working in Zeit Now

This version fixes some bugs that prevented to programmatically create new tenants with Zeit Now.
You will still need to add some lines your app to make it work. See this documentation to learn more about this.

2.0.0-alpha23

25 Mar 15:53
39e413c
Compare
Choose a tag to compare
2.0.0-alpha23 Pre-release
Pre-release

Note: This version is compatible with [email protected]

This release makes prisma-multi-tenant compatible with prisma2@preview023

You may need to regenerated the prisma clients of management & tenants:

prisma-multi-tenant generate

2.0.0-alpha22.1

26 Feb 18:25
Compare
Choose a tag to compare
2.0.0-alpha22.1 Pre-release
Pre-release

Note: This version is compatible with [email protected]

New commands

Migrate save

prisma-multi-tenant migrate save
prisma-multi-tenant migrate my_tenant save

This command is a wrapper to prisma2 migrate save. If no tenant is given in arguments, it will use the default DATABASE_URL value.

New management

prisma-multi-tenant new management

This command will create a new management database.

Note: If you then want to use it a your default database, don't forget to update the values in the prisma/.env file.

Documentation

Two new examples are available:

A new Contributing Guide is also available. (Don't hesitate to contribute 😉)

2.0.0-alpha22

23 Feb 19:55
Compare
Choose a tag to compare
2.0.0-alpha22 Pre-release
Pre-release

Note: This version is compatible with [email protected]

Breaking changes

Prisma-multi-tenant now uses env variables instead of the schema.prisma file to store the provider & url of the management database. This makes prisma-multi-tenant less invasive and allow for a "default" value to be present in the .env file, so that you can still run prisma2 commands on this default datasource.

If you initialized your project with prisma-multi-tenant before this release here is what you must do:

Before:
schema.prisma

datasource tenant {
  provider = "sqlite"
  url      = env("PMT_URL")
}

datasource management {
  provider = "sqlite"
  url      = "file:management.db"
  enabled  = false
}

After:
schema.prisma

datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

.env

DATABASE_URL=file:dev.db

MANAGEMENT_PROVIDER=sqlite
MANAGEMENT_URL=file:management.db

Note: You may need to re-generate the migrations in the migrations folder


Improvements

  • Makes prisma-multi-tenant compatible with windows (#21 & #22)

Initial release

17 Dec 20:09
Compare
Choose a tag to compare

Initial release of the prisma-multi-tenant package.

NPM: https://www.npmjs.com/package/prisma-multi-tenant