-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refractor Planetscale to Neon #234
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@shouryan01 wanna continue on this? ✨ |
Assigned this to you @shouryan01 - Ok? 🔥 |
We are almost there i think @shouryan01. www:dev: Error in tRPC handler (edge) on path account.addAccount
www:dev: [TRPCError: column reference "name" is ambiguous] {
www:dev: code: 'INTERNAL_SERVER_ERROR',
www:dev: name: 'TRPCError'
www:dev: } The file is under await db.transaction(async (tx) => {
await tx
.insert(schema.balance)
.values({
accountId: BigInt(accountQuery.insertId),
currencyIso: createAccountSchema.parse(opts.input).currencyIso,
amount: createAccountSchema.parse(opts.input).amount ?? 0,
date: new Date(),
type: "AVAILABLE",
originalPayload: createAccountSchema.parse(opts.input),
})
.onConflictDoUpdate({
target: schema.balance.id,
set: {
amount: sql`amount`,
date: sql`date`,
},
}); Im getting this error for this function: No overload matches this call.
Overload 2 of 2, '(values: { type: SQL<unknown> | "AVAILABLE" | "BOOKED" | "EXPECTED" | Placeholder<string, any>; currencyIso: string | SQL<unknown> | Placeholder<string, any>; ... 7 more ...; accountId?: string | ... 3 more ... | undefined; }[]): PgInsertBase<...>', gave the following error.
Object literal may only specify known properties, and 'accountId' does not exist in type '{ type: SQL<unknown> | "AVAILABLE" | "BOOKED" | "EXPECTED" | Placeholder<string, any>; currencyIso: string | SQL<unknown> | Placeholder<string, any>; ... 7 more ...; accountId?: string | ... 3 more ... | undefined; }[]'. |
Hello, tried it and got these errors @shouryan01 :
|
Description
This Pull Request initiates the migration from PlanetScale to Neon for our database needs. It is currently in draft status and provides initial setup and migration steps.
pnpm db:push
Remaining Tasks:
Optional tasks
Completion Criteria:
This PR will be considered complete when a user can sign in and their data is verifiably inserted into the database as reflected in the Neon tables.
What type of PR is this? (check all applicable)