Ricky
02/22/2019, 10:28 AMprisma deploy
i see messages such as the following
Survey (Type)
+ Created type `Survey`
+ Created field `id` of type `ID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `date` of type `DateTime`
+ Created field `name` of type `String!`
+ Created field `Questions` of type `[Question!]!`
Question (Type)
+ Created type `Question`
+ Created field `id` of type `ID!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `displayText` of type `String!`
+ Created field `surveys` of type `[Survey!]!`
QuestionOnSurvey (Relation)
+ Link Table `_QuestionOnSurvey` between `Question` and `Survey` has been created
There is also a counter saying Applying changes (x/y)
. However I see that the counts decreases to 0 instead of increases.
checking in the db itself shows only this table _RelayId
is created. Any idea what could be wrong?
Many thanksRicky
02/22/2019, 10:32 AMApplying changes... (0/332) client Sending query to cluster default +48ms
client https://<myprismaendpoint>/management +0ms
client query ($name: String! $stage: String!) {
client migrationStatus(name: $name stage: $stage) {
client projectId
client revision
client status
client applied
client rolledBack
client errors
client }
client }
client +0ms
client { stage: 'default', name: 'dev' } +0ms
client { migrationStatus:
client { rolledBack: 0,
client applied: 2,
client projectId: 'dev$default',
client errors: [],
client revision: 12,
client status: 'IN_PROGRESS' } } +160ms
Applying changes... (2/332) client Sending query to cluster default +503ms
client https://<myprismaendpoint>/management +0ms
client query ($name: String! $stage: String!) {
client migrationStatus(name: $name stage: $stage) {
client projectId
client revision
client status
client applied
client rolledBack
client errors
client }
client }
client +0ms
client { stage: 'default', name: 'dev' } +0ms
client { migrationStatus:
client { rolledBack: 0,
client applied: 0,
client projectId: 'dev$default',
client errors: [],
client revision: 1,
client status: 'SUCCESS' } } +121ms
Applying changes... (0/332)
Applying changes... 1.3s
and prisma.yaml
datamodel:
- datamodel.graphql
- enums.graphql
endpoint: https://<myprismaendpoint>/dev/
secret: ${env:PRISMA_AUTH_SECRET}
Harshit
02/22/2019, 12:23 PMRicky
02/22/2019, 1:46 PMEncountered exception while applying migration. Rolling back. org.postgresql.util.PSQLException: ERROR: schema "<my_database>" does not exist
. So somehow prisma is confusing my actual database <my_databse> with a schema?Ricky
02/25/2019, 12:51 PMHarshit
02/25/2019, 12:53 PM