Optio1
Optio1
DTDrizzle Team
Created by MaveriX89 on 1/8/2025 in #help
drizzle-kit push not working with pgSchema
😂 whatever works works. Thanks for figuring it out.
8 replies
DTDrizzle Team
Created by MaveriX89 on 1/8/2025 in #help
drizzle-kit push not working with pgSchema
Can confirm this worked for me as well. Curious where you found that, would be worth updating the docs to have a link to that.
8 replies
DTDrizzle Team
Created by MaveriX89 on 1/8/2025 in #help
drizzle-kit push not working with pgSchema
So I just changed my tables from pgTable(tableDefinition) to
export const customSchema = pgSchema('custom');
customshema.table(tableDefinition)
export const customSchema = pgSchema('custom');
customshema.table(tableDefinition)
and am experiencing the same issue. I found this issue with no known workaround. https://github.com/drizzle-team/drizzle-orm/issues/3476
8 replies
DTDrizzle Team
Created by MaveriX89 on 1/8/2025 in #help
drizzle-kit push not working with pgSchema
Not sure why the auth schema isnt showing up, but for me, I had huge issues with postgres and drizzlekit push when defining things inside of an object inside a list. I would change
},
(table) => [
{
checkConstraint: check("password_check", sql`char_length(${table.password}) >= 8`),
},
],
);
},
(table) => [
{
checkConstraint: check("password_check", sql`char_length(${table.password}) >= 8`),
},
],
);
to
},
(table) => [
checkConstraint: check("password_check", sql`char_length(${table.password}) >= 8`),
],
);
},
(table) => [
checkConstraint: check("password_check", sql`char_length(${table.password}) >= 8`),
],
);
this resolved quite a few issues for me. For reference this is the github issue for this https://github.com/drizzle-team/drizzle-orm/issues/3596
8 replies
DTDrizzle Team
Created by jack on 12/21/2024 in #help
[postgres] composite key does not result in constraint creation
I also agree, I hit this same issue. Definitely feels like a bug considering code verbatim from the docs does not work. Scape's fix above does work, simply removing the object inside of the array and passing the primaryKey straight through the array. The github issue linked above was closed and it is now being tracked here. https://github.com/drizzle-team/drizzle-orm/issues/3596
7 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
still does not account for why I need an external link to get to /api/login or it returns 404 but thats alteast work arroundable
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
🤦‍♂️ 🤦‍♂️ sameSite: lax fixes the cooke not appearing on discords redirect
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
but it is progress
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
which for obvious reasons is not a solution
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
and skip discord
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
it works if I set the link in the api route to redirect directly to the app
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
Ok so
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
I can try attaching a debugger tomorrow here.
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
whats weirder is the login api route when navigating to it renders a 404 error untill I click into it and hit enter, unless its an external link.
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
IDK what to do
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
if that yeilds the same results
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
yea, il try the plugin way
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
It just seems unnessesarily complex for something that seems like the current code should just work for.
133 replies
NNuxt
Created by Optio1 on 3/24/2024 in #❓・help
Issue reliably getting cookies in API Routes.
I tried this using the vue page script components as well, same problem. I mean, I can do something like that custom fetch with the plugins that just returns the token if thats going to work.
133 replies