docs/1.34/faq/migrate-to-self-hosted-fq15.mdx
export const meta = { title: 'Migrating Away from Prisma 1 Cloud', position: 14, articleGroup: 'Prisma 1 Cloud Sunset', }
We released the Prisma ORM (i.e., Prisma 2) for production usage almost two years ago.
This new version of Prisma doesn't require developers to set up a proxy server (i.e., the Prisma server). It also comes with many additional benefits, such as an intuitive and expressive modeling language to declare your database models, a proper migration system, and full type-safety for all database queries. Learn more about the differences between Prisma 1 and the new Prisma ORM here.
Today, we have hundreds of thousands of developers using the Prisma ORM. In addition, our team is building the next generation of database tools for development teams and organizations: the Prisma Data Platform.
šØ Due to Prisma's new focus on the open-source ORM and the Prisma Data Platform, we will officially sunset Prisma 1 Cloud on September 1st, 2022
First, identify if you're using Prisma 1 Cloud at all!
prisma.yml and any environment variables your build process is using.PRISMA_MANAGEMENT_API_SECRET, then you are not using Prisma 1 Cloud. You can verify this by using prisma1 logout from the command line, regenerating your Prisma 1 client, and attempting to deploy or access a service.Servers made it possible to self-host Prisma 1 and maintain ownership of your data while still using Prisma 1 Cloud. Verify if you had configured custom servers:
prisma-eu1, and prisma-us1.Services are discrete Prisma 1 endpoints that applications connect to, usually delineated by dev or prod environments. Note all Services in your account:
If you're using Prisma 1 Cloud to host your Prisma server, you will need to migrate off before September 1st, 2022. You have a few options:
When upgrading to Prisma ORM, there are two general strategies:
Learn more about how to upgrade, the main differences between Prisma 1 and Prisma ORM, and the Prisma upgrade CLI.
We do not recommend self-hosting Prisma 1 as it is in maintenance mode, and Prisma will not develop new features or offer ongoing support for issues. The following are high-level steps for self-hosting if it is not feasible to upgrade your application to Prisma ORM in the time before the Prisma 1 Cloud sunset on September 1st, 2022.
prisma1 export or email us using the email address from your account with a list of the Services in your account that you would like us to back up.prisma.yml file to point to the Prisma 1 Server created in Step 2, and import your service data.If your Prisma 1 Cloud implementation uses custom servers (see above in Step 1), you are already self-hosting Prisma 1.
endpoint property in your prisma.yml file references the custom server that you configured on the Prisma 1 Cloud Servers page.managementApiSecret.prisma1 CLI commands use a PRISMA_MANAGEMENT_API_SECRET environment variable with the value found above. You can do this using the -e flag or another package such as dotenv.prisma1 logout in your console, regenerating your Prisma 1 client, and then attempting to deploy or otherwise access your service using the newly declared environment variables.If you choose to self-host Prisma 1, you can access a similar data browser to the one currently found on Prisma 1 Cloud directly.
endpoint property in your prisma.yml file to point to the Prisma 1 server where you want to access the data browser.prisma.yml file is in, type prisma1 admin, and it should open up a browser to query data hosted right on the server itself. The general URL structure will look something like "https://ENDPOINT/_admin"Any Prisma 1 Cloud implementations that do not use a Custom Server must migrate data to a new database.
export method.After completing the migration off of Prisma 1 Cloud, close your account or send us an email: