kstulgys
kstulgys
Explore posts from servers
DTDrizzle Team
Created by kstulgys on 11/4/2023 in #help
No id returned (mysql2)
async function create(data: NewBusiness) {
return client.insert(business).values(data)
}
async function create(data: NewBusiness) {
return client.insert(business).values(data)
}
returns
headers: [],
types: {},
fields: [],
rows: [],
rowsAffected: 1,
insertId: '0',
size: 0,
statement: ...
headers: [],
types: {},
fields: [],
rows: [],
rowsAffected: 1,
insertId: '0',
size: 0,
statement: ...
I need Id. Tried to add .execute() a the end but same thing.
4 replies
DTDrizzle Team
Created by kstulgys on 10/24/2023 in #help
'token' used in key specification without a key length
Apparently I need to use token: varchar("token", { length: 255 }) because token: text("token") giving issues when pushing. Why? I'm using drizzle with planetscale.
1 replies
DTDrizzle Team
Created by kstulgys on 10/24/2023 in #help
ER_TABLE_EXISTS_ERROR
Can someone explain me what is the proper workflow? 1. change schema.ts (add another column to table) 2. generate migration 3. migrate ER_TABLE_EXISTS_ERROR Why? I'm using drizzle with planetscale
7 replies