Failing to push template t3 schema to neon

Hi all. I've just used create-t3-app to generate the boilerplate for my project. I've made (what I think are) the necessary changes to use neon and postgres (used search in VSCode to find any occurrences of "my" in text files, replaced relevant stuff). When I try to run bun db:push, though, I get an unexpected error. (using drizzle)
$ dotenv drizzle-kit push:pg
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6

No config path provided, using default path
Reading config file '/home/redacted/Projects/funny-thing-mast/drizzle.config.ts'
error: syntax error at or near "-"
at Parser.parseErrorMessage (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40722:98)
at Parser.handlePacket (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40563:25)
at Parser.parse (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40487:34)
at TLSSocket.<anonymous> (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40763:44)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
at readableAddChunk (node:internal/streams/readable:349:9)
at Readable.push (node:internal/streams/readable:286:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 91,
severity: 'ERROR',
code: '42601',
detail: undefined,
hint: undefined,
position: '385',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'scan.l',
line: '1241',
routine: 'scanner_yyerror'
}
$ dotenv drizzle-kit push:pg
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6

No config path provided, using default path
Reading config file '/home/redacted/Projects/funny-thing-mast/drizzle.config.ts'
error: syntax error at or near "-"
at Parser.parseErrorMessage (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40722:98)
at Parser.handlePacket (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40563:25)
at Parser.parse (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40487:34)
at TLSSocket.<anonymous> (/home/redacted/Projects/funny-thing-mast/node_modules/drizzle-kit/index.cjs:40763:44)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
at readableAddChunk (node:internal/streams/readable:349:9)
at Readable.push (node:internal/streams/readable:286:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 91,
severity: 'ERROR',
code: '42601',
detail: undefined,
hint: undefined,
position: '385',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'scan.l',
line: '1241',
routine: 'scanner_yyerror'
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server