Ramón Morcillo
01/13/2021, 7:47 PMREADME.md
file I found some issues when I reach the Profile
part.
I explained them better in this issue https://github.com/prisma/prisma-examples/issues/2417 to see if someone could lend me a hand with them. I am posting it here just in case someone can help me faster or has any idea.
By the way, sorry if this is not the proper channel for this kind of messages, if there is a more appropriate one please tell me and I would gladly post it there 😊Jonathan
01/13/2021, 11:07 PMBen Liger
01/14/2021, 1:14 PMnpx prisma-upgrade prisma1/prisma.yml prisma/schema.prisma
and have been given some SQL queries to run
ALTER TABLE "my-app-dev$dev"."Answer" ALTER COLUMN "id" SET DATA TYPE character varying(30);
ALTER TABLE "my-app-dev$dev"."Answer" ALTER COLUMN "createdForQuestion" SET DATA TYPE character varying(30);
...
I have executed these queries in several different DB clients and every time I re-run npx prisma-upgrade prisma1/prisma.yml prisma/schema.prisma
it still prints me the same SQL queries that I have to run. I have checked the varchar length in my tables after running the scripts and they seem to show the correct value (30). Shall I assume this is a bug and continue on from here? Or does this mean something is still not correct with the schema?eYassine
01/14/2021, 9:58 PMnpx prisma migrate
, i'm building everything in docker.glenn
01/14/2021, 10:00 PMAlex Reyne
01/15/2021, 7:51 PM(node:15954) UnhandledPromiseRejectionWarning: Error:
Invalid `prisma.runs.create()` invocation in
/mnt/c/Users/me/wd/helios/commands/functions/sale.js:56:38
52 }
53
54
55 async function insertRun(msg, obj) {
→ 56 const newRun = await prisma.runs.create(
Error occurred during query execution:
EnvVarNotFound("Expected parent binding \'2\' to be present.")
at qw.request (/mnt/c/Users/me/wd/helios/node_modules/@prisma/client/runtime/index.js:210:203)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async insertRun (/mnt/c/Users/me/wd/helios/commands/functions/sale.js:56:20)
However, the only thing that has a value of 2 isn't it - I've changed it multiple times, still returns the error with 2.Alex Reyne
01/16/2021, 7:15 PMAlex Reyne
01/16/2021, 7:16 PMUsers_Runs_ad_idToUsers: {
connectOrCreate: {
where: { discord: obj.ad.id },
create: {
Servers: {
connect: { server_id: await getServer(obj.ad.nickname) }
},
discord: obj.ad.id,
payout_char: obj.ad.nickname,
balance: 0,
Ranks: {
connect: { id: 4 }
}
}
}
}
Something like thisVictor Björklund
01/16/2021, 10:05 PMVictor Björklund
01/16/2021, 10:05 PMVictor Björklund
01/16/2021, 10:07 PMVictor Björklund
01/16/2021, 10:08 PMVictor Björklund
01/16/2021, 10:08 PMVictor Björklund
01/16/2021, 10:09 PMVictor Björklund
01/16/2021, 10:09 PMVictor Björklund
01/16/2021, 10:09 PMVictor Björklund
01/16/2021, 10:10 PMVictor Björklund
01/16/2021, 10:10 PMCrypto Salomão
01/17/2021, 8:48 AMCrypto Salomão
01/17/2021, 8:48 AMCrypto Salomão
01/17/2021, 8:48 AMAri Seyhun
01/18/2021, 3:31 PMlet obj = {
let obj = Object::default();
obj.insert("id", store.id);
obj.insert("active", store.active);
obj.insert("paid", store.paid);
obj;
};
let query = client.query(Create::new(Ref::class("stores"), obj));
21 | let query = client.query(Create::new(Ref::class("stores"), obj));
| ^^^^^^^^^^^ the trait `std::convert::From<()>` is not implemented for `faunadb::prelude::Query<'_>`
EDIT:
Nevermind... I relalised I had a dumb mistake.
My function was:
pub fn new(client: &Client, &store: &Self) {
But should've been:
pub fn new(client: &Client, store: &Self) {
Ari Seyhun
01/18/2021, 4:28 PMashok
01/19/2021, 1:07 AMashok
01/19/2021, 1:07 AMprisma migrate
is still not production ready?ashok
01/19/2021, 1:08 AMPatrick
01/19/2021, 9:19 AMEden Lane
01/20/2021, 2:03 PMerror: Environment variable not found: DATABASE_URL.
despite the fact I have it in my prisma-test-environment.js
(like in the examples directory).
Can somebody help me with that?Pitakun
01/20/2021, 3:20 PMiamclaytonray
01/20/2021, 4:20 PM