-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(planetscale): reuse the same planetscale database for all ecosy…
…stem tests (#5804)
- Loading branch information
Showing
23 changed files
with
61 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,8 @@ PlanetScale Database | |
### Environment Variables | ||
|
||
Set the env var `DATABASE_URL_PLANETSCALE` | ||
|
||
> [!NOTE] | ||
> Note that all planetscale tests share the same database but operate on different tables. | ||
> They use the database "e2e-tests" in the prisma org. | ||
> The `[email protected]` has full access to this. => See 1Password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,9 @@ model User { | |
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_cf_basic") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,9 @@ model User { | |
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_cfpages_basic") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,13 @@ datasource db { | |
} | ||
|
||
model User { | ||
id String @default(cuid()) @id | ||
id String @id @default(cuid()) | ||
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_vercel_nextjs_edgemw") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
provider = "prisma-client-js" | ||
previewFeatures = ["driverAdapters"] | ||
} | ||
|
||
|
@@ -10,8 +10,13 @@ datasource db { | |
} | ||
|
||
model User { | ||
id String @default(cuid()) @id | ||
id String @id @default(cuid()) | ||
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_node_basic_esm") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
provider = "prisma-client-js" | ||
previewFeatures = ["driverAdapters"] | ||
} | ||
|
||
|
@@ -10,8 +10,13 @@ datasource db { | |
} | ||
|
||
model User { | ||
id String @default(cuid()) @id | ||
id String @id @default(cuid()) | ||
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_node_basic") | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
provider = "prisma-client-js" | ||
previewFeatures = ["driverAdapters"] | ||
} | ||
|
||
|
@@ -10,8 +10,13 @@ datasource db { | |
} | ||
|
||
model User { | ||
id String @default(cuid()) @id | ||
id String @id @default(cuid()) | ||
email String @unique | ||
name String? | ||
age Int? | ||
// Note that all planetscale tests share the same database but operate on different tables. | ||
// They use the database "e2e-tests" in the prisma org. | ||
// The `[email protected]` has full access to this. => See 1Password. | ||
@@map("user_vercel_nextjs") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.