kstulgys
kstulgys
Explore posts from servers
DTDrizzle Team
Created by pbochis on 10/19/2023 in #help
drizzle-kit push:mysql drops unchanged primary key & introspect:mysql fails hard
For me commenting out strict and verbose solved this. Make sure you have latest drizzle orm version
13 replies
DTDrizzle Team
Created by pbochis on 10/19/2023 in #help
drizzle-kit push:mysql drops unchanged primary key & introspect:mysql fails hard
Actually solved by commenting out strict
export default {
out: "./src/database/drizzle/migrations",
// strict: true,
schema: "./src/database/drizzle/schema.ts",
// verbose: true,
driver: "mysql2",
dbCredentials: {
connectionString: ...
},
} satisfies Config;
export default {
out: "./src/database/drizzle/migrations",
// strict: true,
schema: "./src/database/drizzle/schema.ts",
// verbose: true,
driver: "mysql2",
dbCredentials: {
connectionString: ...
},
} satisfies Config;
13 replies
DTDrizzle Team
Created by pbochis on 10/19/2023 in #help
drizzle-kit push:mysql drops unchanged primary key & introspect:mysql fails hard
I have same issue. SO fking anoying, been trying to debug the whole day
13 replies
DTDrizzle Team
Created by kstulgys on 10/24/2023 in #help
ER_TABLE_EXISTS_ERROR
yes, thank you for confirmation
7 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
I've been posting to this endpoint without content-type: application/json header before.
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
deposit: publicProcedure.input(z.any()).mutation(({ ctx, input }) => {
console.log(input);
return { input };
}),
deposit: publicProcedure.input(z.any()).mutation(({ ctx, input }) => {
console.log(input);
return { input };
}),
{
"result": {
"data": {
"input": {
"hello": "world"
}
}
}
}
{
"result": {
"data": {
"input": {
"hello": "world"
}
}
}
}
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
actually it's working, all good
10 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
well, same thing without transformer:
{
"result": {
"data": {}
}
}
{
"result": {
"data": {}
}
}
10 replies