gwil
03/18/2019, 12:03 PMgwil
03/18/2019, 12:09 PMcarstenbaumhoegger
05/21/2019, 9:21 AMtoOne
-Relation to our datamodel.
This issue https://github.com/prisma/prisma/issues/2323 describes the current migration options and how to set default values etc., but I can’t figure out, how to connect another type by default (e.g. a user by the unique mail-adress). Is there any possibility to do this via the Prisma migrations?
We’re running over a dozen backends which I’d had to migrate manually, if this isn’t possible.Jonathan
06/04/2019, 7:46 PMJonathan
06/04/2019, 7:48 PMJonathan
06/05/2019, 1:38 PMJon Penwood
08/15/2019, 4:39 PMJosef Henryson
09/09/2019, 5:17 PMValid values for the strategy argument of `@scalarList` are: RELATION
So I added @scalarList(strategy: RELATION)
and it worked. But when I inspect my DB I see that the related table is empty after import from GC where there are values for this field.
What happens is that for MyTable with myField: [String!] @scalarList(strategy: RELATION) another table is created with name: MyTable_myField with columns: nodeId, position, value. I got 4 different tables with this structure and all are empty after import.
Any ideas on how I could fix this?Josef Henryson
09/14/2019, 6:59 AMJosef Henryson
09/16/2019, 2:38 PMnexus-prisma.ts:2580:25 - error TS2694: Namespace '"/.../prisma-client/index"' has no exported member 'SomeExample'.
Did I generate the prisma-client in the wrong way? Do I miss to add something to my datamodel.prisma?Josef Henryson
09/19/2019, 3:36 PMJosef Henryson
10/24/2019, 12:27 PMCause: .SQLIntegrityConstraintViolationException: (conn=567) Duplicate entry 'cjmlq59d62tvm01838cb26o1h' for key 'PRIMARY'"
I do this because I want most of my prod data to be in my prisma DB before launch and on launch day just import the recently added data.
Does anyone know if it is possible to tell prisma import to ignore existing entries?arthur
01/08/2020, 3:52 PMtmoney
01/10/2020, 9:08 PMJerry Jäppinen
02/28/2020, 6:03 PMChristoph
04/24/2020, 5:09 PMBilly Ohgren
05/08/2020, 7:40 AMStijn
06/23/2020, 9:09 AMqsys
07/09/2020, 9:27 AMqsys
07/09/2020, 9:29 AMJosh Chua
07/14/2020, 8:06 AMJosh Chua
07/14/2020, 8:06 AMJohn Nguyen
08/03/2020, 1:27 PMauthor_id
on a post, how can I (for sake of asking the question), execute a select few to have one author_id another others a different author_id for a migration?Kohki Shiga
08/08/2020, 1:31 AMBilly Ohgren
08/11/2020, 7:33 AMAlberto Perdomo
Billy Ohgren
08/12/2020, 12:58 PMBilly Ohgren
08/12/2020, 12:59 PMjknr
08/17/2020, 5:01 PM@map
directives being lost from introspect, so does it mean that to support those things we will have to move from existing migration solution (eg. knex or umzug) to prisma migrate?Alberto Perdomo