You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing the add to cart feature (about halfway through part 12), I am getting the following error when trying to push to my db:
--> npx drizzle-kit push
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/jaay/Documents/dev/shop-dadli/drizzle.config.ts'
Using 'pg' driver for database querying
[✓] Pulling schema from database...
ERROR: column "userId" cannot be cast automatically to type uuid
at /Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.query (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:71880:26)
at async pgPush (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:74835:13)
at async Object.handler (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:83713:9)
at async run (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:82064:7) {
length: 179,
severity: 'ERROR',
code: '42804',
detail: undefined,
hint: 'You might need to specify "USING "userId"::uuid".',
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'tablecmds.c',
line: '12391',
routine: 'ATPrepAlterColumnType'
}
Did I miss something or create the table incorrectly?
You can see my code on my page under shop-dadli. Any help would be greatly appreciated, Bassir. Thank you for this tutorial. It has been very helpful to me.
The text was updated successfully, but these errors were encountered:
When implementing the add to cart feature (about halfway through part 12), I am getting the following error when trying to push to my db:
--> npx drizzle-kit push
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/jaay/Documents/dev/shop-dadli/drizzle.config.ts'
Using 'pg' driver for database querying
[✓] Pulling schema from database...
ERROR: column "userId" cannot be cast automatically to type uuid
at /Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.query (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:71880:26)
at async pgPush (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:74835:13)
at async Object.handler (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:83713:9)
at async run (/Users/jaay/Documents/dev/shop-dadli/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:82064:7) {
length: 179,
severity: 'ERROR',
code: '42804',
detail: undefined,
hint: 'You might need to specify "USING "userId"::uuid".',
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'tablecmds.c',
line: '12391',
routine: 'ATPrepAlterColumnType'
}
Did I miss something or create the table incorrectly?
You can see my code on my page under shop-dadli. Any help would be greatly appreciated, Bassir. Thank you for this tutorial. It has been very helpful to me.
The text was updated successfully, but these errors were encountered: