Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(migrate): add provider switch test
- Loading branch information
Showing
5 changed files
with
57 additions
and
10 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
1 change: 1 addition & 0 deletions
1
...provider-switch-postgresql-to-sqlite/prisma/migrations/20210215145936_hello/migration.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-- CreateTable |
2 changes: 1 addition & 1 deletion
2
...ate/prisma/migrations/migration_lock.toml → ...ite/prisma/migrations/migration_lock.toml
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,2 +1,2 @@ | ||
# Please do not edit this file manually | ||
provider = "sqlite" | ||
provider = "postgresql" |
19 changes: 19 additions & 0 deletions
19
.../migrate/src/__tests__/fixtures/provider-switch-postgresql-to-sqlite/prisma/schema.prisma
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// datasource my_db { | ||
// provider = "postgresql" | ||
// url = env("TEST_POSTGRES_URI_MIGRATE") | ||
// } | ||
|
||
datasource my_db { | ||
provider = "sqlite" | ||
url = "file:./dev.db" | ||
} | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
output = "@prisma/client" | ||
} | ||
|
||
model Blog { | ||
id Int @id | ||
viewCount20 Int | ||
} |