From 14b1028fc8cb541ff746694b5627b254adf224fc Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 11:23:43 +0200 Subject: [PATCH 01/13] add preview-1 release --- preview-1.md | 0 releases/README.md | 11 +++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 preview-1.md diff --git a/preview-1.md b/preview-1.md new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/releases/README.md b/releases/README.md index 94773ace6a97..8536516c638b 100644 --- a/releases/README.md +++ b/releases/README.md @@ -1,5 +1,7 @@ # Releases +This page explains the release process for Prisma 2. + ## Release channels There are two main release channels: @@ -11,7 +13,7 @@ Unless you have specific requirements for the alpha channel, it is recommended t ### Preview -Prisma 2 has a **weekly release cycle** where new Preview releases are issued **on Thursdays**. Preview releases are named `preview-1`, `preview-2`, `preview-3`, ... +Prisma 2 has a **weekly release cycle** where new Preview releases are issued **on Thursdays**. Preview releases are named `2.0.0-preview-1`, `2.0.0-preview-2`, `2.0.0-preview-3`, ... or you can reference them for short: `preview-1`, `preview-2`, `preview-3` ... You can install the latest Preview release via npm: @@ -29,4 +31,9 @@ You can install the latest alpha release via npm: ``` npm install -g prisma2@alpha -``` \ No newline at end of file +``` + +## Release overview + +- [`preview-1`](./preview-1.md) (July 11, 2019) +- `preview-2` (July 18, 2019) From 5e24a409a8dc92ec6fe543e05bc6310ac5c4e0fa Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 11:30:09 +0200 Subject: [PATCH 02/13] add preview-1 release --- preview-1.md | 0 releases/preview-1.md | 1 + 2 files changed, 1 insertion(+) delete mode 100644 preview-1.md create mode 100644 releases/preview-1.md diff --git a/preview-1.md b/preview-1.md deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/releases/preview-1.md b/releases/preview-1.md new file mode 100644 index 000000000000..06ecdf3405bf --- /dev/null +++ b/releases/preview-1.md @@ -0,0 +1 @@ +# 2.0.0-preview-1 \ No newline at end of file From 97d8ba57f26298d508185d1ce7dfb56c469dc77d Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 15:43:48 +0200 Subject: [PATCH 03/13] prepare preview-1 release --- README.md | 2 +- docs/README.md | 2 +- .../connectors/{postgres.md => postgresql.md} | 4 +- docs/data-modeling.md | 2 +- docs/faq.md | 2 +- docs/glossary.md | 2 +- docs/prisma-schema-file.md | 10 ++-- docs/tutorial.md | 10 ++-- releases/preview-1.md | 48 ++++++++++++++++++- 9 files changed, 64 insertions(+), 18 deletions(-) rename docs/core/connectors/{postgres.md => postgresql.md} (96%) diff --git a/README.md b/README.md index 7f1db950e926..6b04d755e04f 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Learn more about the `prisma2 init` flow [here](./docs/getting-started.md) or ge - Core - Connectors - [MySQL](./docs/core/connectors/mysql.md) - - [PostgreSQL](./docs/core/connectors/postgres.md) + - [PostgreSQL](./docs/core/connectors/postgresql.md) - [SQLite](./docs/core/connectors/sqlite.md) - [MongoDB](./docs/core/connectors/mongo.md) - Generators diff --git a/docs/README.md b/docs/README.md index 13f9250ae502..c9089e0162cf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,7 +14,7 @@ - Core - Connectors - [MySQL](./core/connectors/mysql.md) - - [PostgreSQL](./core/connectors/postgres.md) + - [PostgreSQL](./core/connectors/postgresql.md) - [SQLite](./core/connectors/sqlite.md) - [MongoDB](./core/connectors/mongo.md) - Generators diff --git a/docs/core/connectors/postgres.md b/docs/core/connectors/postgresql.md similarity index 96% rename from docs/core/connectors/postgres.md rename to docs/core/connectors/postgresql.md index f7ba64a82550..6f33abaee3eb 100644 --- a/docs/core/connectors/postgres.md +++ b/docs/core/connectors/postgresql.md @@ -8,7 +8,7 @@ To connect to a PostgreSQL database server, you need to configure a [`datasource ```groovy datasource pg { - provider = "postgres" + provider = "postgresql" url = env("POSTGRES_URL") } @@ -64,7 +64,7 @@ postgresql://[user[:password]@][netloc][:port][,...][/database][?param1=value1&. - `host`: The IP address/domain of your database server, e.g. `localhost`. - `port`: The port on which your database server listens, e.g. `5432`. - `database`: The name of the database with the target schema. -- `schema`: The name of the target schema. +- `schema`: The name of the target schema. Default: `public`. - `user`: The database user, e.g. `admin`. - `password`: The password for the database user. - `ssl`: Whether or not your database server uses SSL. diff --git a/docs/data-modeling.md b/docs/data-modeling.md index 4f681e884a8c..980933899915 100644 --- a/docs/data-modeling.md +++ b/docs/data-modeling.md @@ -374,7 +374,7 @@ _Connector_ attributes let you use the native features of your data source. With Here is where you can find the documentation of connector attributes per data source connector: - [MySQL](./core/connectors/mysql.md) -- [PostgreSQL](./core/connectors/postgres.md) +- [PostgreSQL](./core/connectors/postgresql.md) - [SQLite](./core/connectors/sqlite.md) - [MongoDB](./core/connectors/mongo.md) diff --git a/docs/faq.md b/docs/faq.md index 2132b0edffbd..ae9c44d4ac57 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -31,7 +31,7 @@ Photon acts more as a _query builder_ returning plain objects with a focus on st ### Will Photon support more databases (and other data sources) in the future? -Yes. Photon is based on Prisma's query engine that can connect to any data source that provides a proper connector implementation. There will be built-in connectors such as the current ones for [PostgreSQL](./core/connectors/postgres.md), [MySQL](./core/connectors/mysql.md) and [SQLite](./core/connectors/sqlite.md). +Yes. Photon is based on Prisma's query engine that can connect to any data source that provides a proper connector implementation. There will be built-in connectors such as the current ones for [PostgreSQL](./core/connectors/postgresql.md), [MySQL](./core/connectors/mysql.md) and [SQLite](./core/connectors/sqlite.md). However, it's also possible to build your own connectors, more documentation on that topic will follow soon. diff --git a/docs/glossary.md b/docs/glossary.md index da0515e339ee..99a93e3f9571 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -47,7 +47,7 @@ A data source connector connects Prisma to a [data source](#data-source). Prisma currently supports the following built-in connectors: - [`sqlite`](./core/connectors/sqlite.md): A connector for SQLite databases -- [`postgres`](./core/connectors/postgres.md): A connector for PostgreSQL databases +- [`postgresql`](./core/connectors/postgresql.md): A connector for PostgreSQL databases - [`mysql`](./core/connectors/mysql.md): A connector for MySQL databases - [`mongo`](./core/connectors/mongo.md): A connector for MongoDB databases (_coming soon_) diff --git a/docs/prisma-schema-file.md b/docs/prisma-schema-file.md index b4f3e7dfea21..41876f87c762 100644 --- a/docs/prisma-schema-file.md +++ b/docs/prisma-schema-file.md @@ -73,7 +73,7 @@ A data source can be specified using a `datasource` block in the schema file. | Name | Required | Type | Description | | --- | --- | --- | --- | -| `provider` | **Yes** | Enum (`postgres`, `mysql`, `sqlite`) | Describes which data source connector to use. | +| `provider` | **Yes** | Enum (`postgresql`, `mysql`, `sqlite`) | Describes which data source connector to use. | | `url` | **Yes** | String (URL) | Connection URL including authentication info. Each data source connector documents the URL syntax. Most connectors use the syntax provided by the database. | | `enabled` | No | Boolean | Use environment variables to enable/disable a data source. **Default**: `true`. | @@ -94,8 +94,8 @@ datasource mysql { url = env("SQLITE_URL") } -datasource postgres { - provider = "postgres" +datasource postgresql { + provider = "postgresql" url = env("SQLITE_URL") } @@ -112,7 +112,7 @@ This is just a general convention, technically data sources can be named anythin ```groovy datasource pg { - provider = "postgres" + provider = "postgresql" url = env("POSTGRES_URL") enabled = true } @@ -196,7 +196,7 @@ Environment variables can be provided using the `env` function: ``` datasource pg { - provider = "postgres" + provider = "postgresql" url = env("POSTGRES_URL") } ``` diff --git a/docs/tutorial.md b/docs/tutorial.md index 46c4fb4e29c7..d9c599967395 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -113,18 +113,18 @@ Your Prisma schema file currently has the following contents: ```prisma datasource db { - provider = "postgres" + provider = "postgresql" url = "postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA" } ``` The uppercase letters are placeholders representing your database credentials. -For a PostgreSQL database hosted on Heroku, the [connection string](./core/connectors/postgres.md#connection-string) might look as follows: +For a PostgreSQL database hosted on Heroku, the [connection string](./core/connectors/postgresql.md#connection-string) might look as follows: ```prisma datasource db { - provider = "postgres" + provider = "postgresql" url = "postgresql://opnmyfngbknppm:XXX@ec2-46-137-91-216.eu-west-1.compute.amazonaws.com:5432/d50rgmkqi2ipus?schema=hello-prisma2" } ``` @@ -133,7 +133,7 @@ When running PostgreSQL locally, your user and password as well as the database ```prisma datasource db { - provider = "postgres" + provider = "postgresql" url = "postgresql://johndoe:johndoe@localhost:5432/johndoe?schema=hello-prisma2" } ``` @@ -267,7 +267,7 @@ To generate Photon, you first need to add a `generator` to your schema file. Go ```diff datasource db { - provider = "postgres" + provider = "postgresql" url = "postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA" } diff --git a/releases/preview-1.md b/releases/preview-1.md index 06ecdf3405bf..79614de72453 100644 --- a/releases/preview-1.md +++ b/releases/preview-1.md @@ -1 +1,47 @@ -# 2.0.0-preview-1 \ No newline at end of file +# 2.0.0-preview-1 + +Since the initial [Prisma 2 announcement](https://www.prisma.io/blog/announcing-prisma-2-zq1s745db8i5/), we've ironed out a number of bugs and added lots of improvements. Today, we are issuing the first official [Preview release](./README.md#preview) `2.0.0-preview-1` (short: `preview-1`). + +## Install + +To install `preview-1`, you can just install the Prisma 2 CLI via npm: + +``` +npm install -g prisma2 +``` + +## Major changes + +- Renamed `project.prisma` to `schema.prisma` ([learn more](https://github.com/prisma/prisma2/issues/36)) +- Renamed `postgres` data source provider to `postgresql` ([learn more](https://github.com/prisma/prisma2/issues/1)) + +## Fixes and improvements per repo + +### `prisma2` + +- [Rename `postgres` provider to `postgresql` #1](https://github.com/prisma/prisma2/issues/1) +- [`prisma dev` errors for postgres #12](https://github.com/prisma/prisma2/issues/12) +- [`prisma dev` can't recover from certain rust errors #20](https://github.com/prisma/prisma2/issues/20) +- [PhotonJS Generator: Rename to `photonjs` and other improvements #27](https://github.com/prisma/prisma2/issues/27) +- [Rename `project.prisma` to `schema.prisma` #36](https://github.com/prisma/prisma2/issues/36) +- [Back from SQLite in init workflow does not work #44](https://github.com/prisma/prisma2/issues/44) +- [working type definition example #52](https://github.com/prisma/prisma2/issues/5252) +- [Having a case in model name breaks query engine #61](https://github.com/prisma/prisma2/issues/61) +- [Issue with "now dev" command #65](https://github.com/prisma/prisma2/issues/65) + +### `photonjs` + +- [Generated code has an absolute path #95](https://github.com/prisma/photonjs/issues/95) +- [Dynamic dependency encoding #115](https://github.com/prisma/photonjs/issues/115) +- [Adjust filter operands API #9](https://github.com/prisma/photonjs/issues/9) +- [TypeError: cb.apply is not a function #20](https://github.com/prisma/photonjs/issues/20) +- [createdAt with default doesn't work #29](https://github.com/prisma/photonjs/issues/29) +- [Enum from MySQL are undefined #63](https://github.com/prisma/photonjs/issues/63) +- [Support for selecting relations of relations (and more sophisticated queries in general) #70](https://github.com/prisma/photonjs/issues/70) +- [Where to put generated code #77](https://github.com/prisma/photonjs/issues/77) +- [Update model args are always required for required fields #80](https://github.com/prisma/photonjs/issues/80) + +### `lift` + +- [Create README.md in migration folders #1](https://github.com/prisma/lift/issues/1) +- [prisma2 init error in lift engine #14](https://github.com/prisma/lift/issues/14) From c37e47f0a8b096c1064a21accdb46e6fc9ed1dce Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 15:46:44 +0200 Subject: [PATCH 04/13] prepare preview-1 release --- docs/core/generators/photonjs.md | 14 ++++++++++++++ docs/data-modeling.md | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/docs/core/generators/photonjs.md b/docs/core/generators/photonjs.md index 62841be8e141..8646f437a9bb 100644 --- a/docs/core/generators/photonjs.md +++ b/docs/core/generators/photonjs.md @@ -66,3 +66,17 @@ The Photon JS generator provides the following mapping from data model [scalar t | `Int` | `number` | | `Float` | `number` | | `Datetime` | `Date` | + +## Reserved model names + +When generating Photon JS based on your [data model definition](./data-modeling.md#data-model-definition), there are a number of reserved names that you can't use for your models. Here is a list of the reserved names: + +- `String` +- `Int` +- `Float` +- `Subscription` +- `DateTime` +- `WhereInput` +- `IDFilter` +- `StringFilter` + diff --git a/docs/data-modeling.md b/docs/data-modeling.md index 980933899915..a0b06ea63d9b 100644 --- a/docs/data-modeling.md +++ b/docs/data-modeling.md @@ -11,6 +11,7 @@ - [Functions](#functions) - [Scalar types](#scalar-types) - [Relations](#relations) +- [Reserved model names](#reserved-model-names) ## Data model definition @@ -449,3 +450,17 @@ close. ## Relations Learn more about relations [here](./relations.md). + +## Reserved model names + +When generating Photon JS based on your [data model definition](./data-modeling.md#data-model-definition), there are a number of reserved names that you can't use for your models. Here is a list of the reserved names: + +- `String` +- `Int` +- `Float` +- `Subscription` +- `DateTime` +- `WhereInput` +- `IDFilter` +- `StringFilter` + From 456cd0ca532a0a0a945445f920798fecaa9a5c06 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 15:49:02 +0200 Subject: [PATCH 05/13] prepare preview-1 release --- releases/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/releases/README.md b/releases/README.md index 8536516c638b..e48dffe737f5 100644 --- a/releases/README.md +++ b/releases/README.md @@ -2,6 +2,11 @@ This page explains the release process for Prisma 2. +## Release log + +- [`preview-1`](./preview-1.md) (July 11, 2019) +- `preview-2` (July 18, 2019) + ## Release channels There are two main release channels: @@ -32,8 +37,3 @@ You can install the latest alpha release via npm: ``` npm install -g prisma2@alpha ``` - -## Release overview - -- [`preview-1`](./preview-1.md) (July 11, 2019) -- `preview-2` (July 18, 2019) From 03f5941d615301432b644ba4a4ccebaa2a50c291 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 15:54:13 +0200 Subject: [PATCH 06/13] prepare preview-1 release --- releases/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/releases/README.md b/releases/README.md index e48dffe737f5..a2e5eb200504 100644 --- a/releases/README.md +++ b/releases/README.md @@ -12,13 +12,15 @@ This page explains the release process for Prisma 2. There are two main release channels: - **Preview**: Weekly releases on Thursdays -- **Alpha**: Rolling releases +- **Alpha**: Rolling/continuous releases Unless you have specific requirements for the alpha channel, it is recommended to always use the latest Preview release. ### Preview -Prisma 2 has a **weekly release cycle** where new Preview releases are issued **on Thursdays**. Preview releases are named `2.0.0-preview-1`, `2.0.0-preview-2`, `2.0.0-preview-3`, ... or you can reference them for short: `preview-1`, `preview-2`, `preview-3` ... +Prisma 2 has a **weekly release cycle** where new Preview releases are issued **on Thursdays**. + +Preview releases are named `2.0.0-preview-1`, `2.0.0-preview-2`, `2.0.0-preview-3`, ... or you can reference them for short: `preview-1`, `preview-2`, `preview-3` ... You can install the latest Preview release via npm: From 31e0330eff3c3863952a29855efec9dd42b51d85 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 16:05:28 +0200 Subject: [PATCH 07/13] prepare preview-1 release --- releases/preview-1.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releases/preview-1.md b/releases/preview-1.md index 79614de72453..710ccb1454a3 100644 --- a/releases/preview-1.md +++ b/releases/preview-1.md @@ -1,6 +1,8 @@ # 2.0.0-preview-1 -Since the initial [Prisma 2 announcement](https://www.prisma.io/blog/announcing-prisma-2-zq1s745db8i5/), we've ironed out a number of bugs and added lots of improvements. Today, we are issuing the first official [Preview release](./README.md#preview) `2.0.0-preview-1` (short: `preview-1`). +Since the initial [Prisma 2 announcement](https://www.prisma.io/blog/announcing-prisma-2-zq1s745db8i5/), we've ironed out a number of bugs and added lots of improvements to Photon and Lift. + +Today, we are issuing the first official [Preview release](./README.md#preview) `2.0.0-preview-1` (short: `preview-1`). ## Install From ab9c61c2f76dc917bef7f6a0022cd74b9bdda6bd Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 16:05:49 +0200 Subject: [PATCH 08/13] prepare preview-1 release --- releases/preview-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/preview-1.md b/releases/preview-1.md index 710ccb1454a3..eeb4a477cb47 100644 --- a/releases/preview-1.md +++ b/releases/preview-1.md @@ -17,7 +17,7 @@ npm install -g prisma2 - Renamed `project.prisma` to `schema.prisma` ([learn more](https://github.com/prisma/prisma2/issues/36)) - Renamed `postgres` data source provider to `postgresql` ([learn more](https://github.com/prisma/prisma2/issues/1)) -## Fixes and improvements per repo +## Fixes and improvements per Prisma 2 repository ### `prisma2` From a5f9c20ac62da563dcec03505c33720789b4bd75 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 16:20:42 +0200 Subject: [PATCH 09/13] prepare preview-1 release --- docs/core/generators/photonjs.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/core/generators/photonjs.md b/docs/core/generators/photonjs.md index 8646f437a9bb..ba3e9fd6c4ea 100644 --- a/docs/core/generators/photonjs.md +++ b/docs/core/generators/photonjs.md @@ -78,5 +78,4 @@ When generating Photon JS based on your [data model definition](./data-modeling. - `DateTime` - `WhereInput` - `IDFilter` -- `StringFilter` - +- `StringFilter` \ No newline at end of file From 2c756082aa909119d053a7d2dab2818cf87bce36 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 16:31:23 +0200 Subject: [PATCH 10/13] prepare preview-1 release --- docs/prisma2-feedback.md | 3 ++- docs/tutorial.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/prisma2-feedback.md b/docs/prisma2-feedback.md index 373b894c7871..0fa3aca0e238 100644 --- a/docs/prisma2-feedback.md +++ b/docs/prisma2-feedback.md @@ -62,8 +62,9 @@ Once you created a GitHub issue, feel free to post it in the [`#prisma2-preview` We are extremely eager to get your feedback! Please feel free to reach out to us personally during the Preview period if you can't find an appropriate place for your specific feedback. Email us +Email us Email us Email us Email us Email us -Email us \ No newline at end of file +Email us diff --git a/docs/tutorial.md b/docs/tutorial.md index d9c599967395..1776752abf7f 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -576,4 +576,4 @@ prisma2 lift up ## 9. Explore Photon's relation API -Coming soon. \ No newline at end of file +Coming soon. In the meantime, you can learn more about Photon's relations API [here](./relations.md#relations-in-the-generated-photon-api). \ No newline at end of file From 28db9928ee08f72928af6768122d990a192ed485 Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 17:26:24 +0200 Subject: [PATCH 11/13] prepare preview-1 release --- docs/photon/deployment.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/photon/deployment.md b/docs/photon/deployment.md index 897e5203c3c3..14b60d421339 100644 --- a/docs/photon/deployment.md +++ b/docs/photon/deployment.md @@ -28,3 +28,37 @@ Note that `darwin` is the default `target`. Here's a list of supported platforms | Google Cloud Functions | User's choice | > **ATTENTION**: The `target` field on the `generator` block is not yet implemented. You can track the progress of the implementation [on GitHub](https://github.com/prisma/prisma2/issues/97). You can also check ou the [specification](https://github.com/prisma/specs/tree/master/binary-workflows) for more details. + +## Hosting providers + +### ZEIT Now + +You can deploy your "Photon JS"-based application to [ZEIT Now](https://zeit.co/now). + +When deploying to ZEIT Now, you must configure the following in your `now.json`: + +- `use`: ` @now/node@canary` +- `maxLambdaSize`: `25mb` + +Here is an example `now.json`: + +```json +{ + "version": 2, + "builds": [ + { + "src": "index.js", + "use": "@now/node@canary", + "config": { + "maxLambdaSize": "25mb" + } + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "index.js" + } + ] +} +``` \ No newline at end of file From 39b244b3dc9a036e4754028eaeac2be0e200063b Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 17:30:20 +0200 Subject: [PATCH 12/13] prepare preview-1 release --- docs/photon/deployment.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/photon/deployment.md b/docs/photon/deployment.md index 14b60d421339..5f82faf312da 100644 --- a/docs/photon/deployment.md +++ b/docs/photon/deployment.md @@ -37,7 +37,7 @@ You can deploy your "Photon JS"-based application to [ZEIT Now](https://zeit.co/ When deploying to ZEIT Now, you must configure the following in your `now.json`: -- `use`: ` @now/node@canary` +- `use`: `@now/node@canary` - `maxLambdaSize`: `25mb` Here is an example `now.json`: @@ -61,4 +61,6 @@ Here is an example `now.json`: } ] } -``` \ No newline at end of file +``` + +You can find an example for a ZEIT Now deployment [here](). \ No newline at end of file From 56a848b8c71271e1f2390da64a1d5602f2c9541b Mon Sep 17 00:00:00 2001 From: Nikolas Burk Date: Thu, 11 Jul 2019 17:46:27 +0200 Subject: [PATCH 13/13] prepare preview-1 release --- docs/photon/deployment.md | 2 +- releases/README.md | 2 +- releases/preview-1.md | 49 --------------------------------------- 3 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 releases/preview-1.md diff --git a/docs/photon/deployment.md b/docs/photon/deployment.md index 5f82faf312da..7efaf5b30db4 100644 --- a/docs/photon/deployment.md +++ b/docs/photon/deployment.md @@ -63,4 +63,4 @@ Here is an example `now.json`: } ``` -You can find an example for a ZEIT Now deployment [here](). \ No newline at end of file +You can find an example for a ZEIT Now deployment [here](https://github.com/prisma/photonjs/tree/master/examples/javascript/now). \ No newline at end of file diff --git a/releases/README.md b/releases/README.md index a2e5eb200504..324709255d3f 100644 --- a/releases/README.md +++ b/releases/README.md @@ -4,7 +4,7 @@ This page explains the release process for Prisma 2. ## Release log -- [`preview-1`](./preview-1.md) (July 11, 2019) +- [`preview-1`](https://github.com/prisma/prisma/releases/tag/2.0.0-preview-1) (July 11, 2019) - `preview-2` (July 18, 2019) ## Release channels diff --git a/releases/preview-1.md b/releases/preview-1.md deleted file mode 100644 index eeb4a477cb47..000000000000 --- a/releases/preview-1.md +++ /dev/null @@ -1,49 +0,0 @@ -# 2.0.0-preview-1 - -Since the initial [Prisma 2 announcement](https://www.prisma.io/blog/announcing-prisma-2-zq1s745db8i5/), we've ironed out a number of bugs and added lots of improvements to Photon and Lift. - -Today, we are issuing the first official [Preview release](./README.md#preview) `2.0.0-preview-1` (short: `preview-1`). - -## Install - -To install `preview-1`, you can just install the Prisma 2 CLI via npm: - -``` -npm install -g prisma2 -``` - -## Major changes - -- Renamed `project.prisma` to `schema.prisma` ([learn more](https://github.com/prisma/prisma2/issues/36)) -- Renamed `postgres` data source provider to `postgresql` ([learn more](https://github.com/prisma/prisma2/issues/1)) - -## Fixes and improvements per Prisma 2 repository - -### `prisma2` - -- [Rename `postgres` provider to `postgresql` #1](https://github.com/prisma/prisma2/issues/1) -- [`prisma dev` errors for postgres #12](https://github.com/prisma/prisma2/issues/12) -- [`prisma dev` can't recover from certain rust errors #20](https://github.com/prisma/prisma2/issues/20) -- [PhotonJS Generator: Rename to `photonjs` and other improvements #27](https://github.com/prisma/prisma2/issues/27) -- [Rename `project.prisma` to `schema.prisma` #36](https://github.com/prisma/prisma2/issues/36) -- [Back from SQLite in init workflow does not work #44](https://github.com/prisma/prisma2/issues/44) -- [working type definition example #52](https://github.com/prisma/prisma2/issues/5252) -- [Having a case in model name breaks query engine #61](https://github.com/prisma/prisma2/issues/61) -- [Issue with "now dev" command #65](https://github.com/prisma/prisma2/issues/65) - -### `photonjs` - -- [Generated code has an absolute path #95](https://github.com/prisma/photonjs/issues/95) -- [Dynamic dependency encoding #115](https://github.com/prisma/photonjs/issues/115) -- [Adjust filter operands API #9](https://github.com/prisma/photonjs/issues/9) -- [TypeError: cb.apply is not a function #20](https://github.com/prisma/photonjs/issues/20) -- [createdAt with default doesn't work #29](https://github.com/prisma/photonjs/issues/29) -- [Enum from MySQL are undefined #63](https://github.com/prisma/photonjs/issues/63) -- [Support for selecting relations of relations (and more sophisticated queries in general) #70](https://github.com/prisma/photonjs/issues/70) -- [Where to put generated code #77](https://github.com/prisma/photonjs/issues/77) -- [Update model args are always required for required fields #80](https://github.com/prisma/photonjs/issues/80) - -### `lift` - -- [Create README.md in migration folders #1](https://github.com/prisma/lift/issues/1) -- [prisma2 init error in lift engine #14](https://github.com/prisma/lift/issues/14)