Releases: Errorname/prisma-multi-tenant
2.0.0-beta.2
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
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
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
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
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
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
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
Initial release
Initial release of the prisma-multi-tenant
package.