Michael Schaufelberger
Michael Schaufelberger
Explore posts from servers
XXata
Created by Michael Schaufelberger on 1/24/2025 in #help
Drizzle pull/push: Permission denied for view pg_stat_user_indexes
Thank you!
4 replies
XXata
Created by Michael Schaufelberger on 1/17/2025 in #help
Branch copy has old schema version
Thanks for the info. 👍
15 replies
XXata
Created by Schahin on 12/29/2024 in #help
pgroll with drizzle generated migrations - possible?
To @Schahin and anyone finding this I had a similar issue a while ago. I think Xata is actively working on something where you can turn sql files into xata migrations. https://github.com/xataio/pgroll/issues/504 With that you probably will be able to quite easily create pgroll migrations whenever you run drizzle's generate.
4 replies
XXata
Created by Michael Schaufelberger on 1/17/2025 in #help
Branch copy has old schema version
Okay, thanks! Is there a way to squash the migration history? I think I've read this somewhere in a pgroll issue, but am not sure if it's applicable or even possible. Can we maybe just create a new dev branch where we create the schema ourselves, e.g. by using DBeaver or Drizzle? Or would this have a similar issue?
15 replies
TtRPC
Created by Michael Schaufelberger on 1/15/2025 in #❓-help
How do *you* structure the tRPC router when dealing with isolated components?
Thank you for the insight. I think splitting the namespace or even the router is a good idea. So I can better know which procedures are from isolated/deeply nested components.
5 replies
TtRPC
Created by sh03 on 12/12/2024 in #❓-help
Simplifying SSR (e.g. in Next.JS)
Hi @sh03 Have you found a solution to this?
5 replies
XXata
Created by Michael Schaufelberger on 1/17/2025 in #help
Branch copy has old schema version
FYI: I will now directly alter the schema for test-template2 using PSQL while you are investigating (to work on what i need to work on :P). OK?
15 replies
XXata
Created by Michael Schaufelberger on 1/17/2025 in #help
Branch copy has old schema version
Interesting. I've just created test-template2 and it had the same issues. Then I've tried a completely new name, I'm sure never existed something-new and both those branches are missing the new columns. It seems that it's not about the target's branch name, but there's an issue reading the base branch.
15 replies
XXata
Created by Michael Schaufelberger on 1/17/2025 in #help
Branch copy has old schema version
Oh, sorry, didn't mention that. column eventSeries.languages does not exist
15 replies
XXata
Created by Michael Schaufelberger on 12/3/2024 in #help
Cannot install Xata CLI in Linux using the script or homebrew
No description
5 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
To share a little context, we had a lot of difficulty integrating Files with the Native SQL Table, which is why we introduced the toggle so you can flip between the "old" and "new" table.
This makes sense. Although, currently, the Native SQL Table is unusable if you have a single file field in the table you want to edit. Editing is basically blocked until you switch the setting. May I make a suggestion to skip/block updating the file fields when having the setting enabled? So we can at least edit the other fields.
17 replies
TtRPC
Created by Rule on 11/27/2024 in #❓-help
tRPC 404 in Next.js API Routes
That's fine. Glad I could help!
10 replies
TtRPC
Created by Rule on 11/27/2024 in #❓-help
tRPC 404 in Next.js API Routes
and remove the createContext from mine. i think that's optional
10 replies
TtRPC
Created by Rule on 11/27/2024 in #❓-help
tRPC 404 in Next.js API Routes
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';

import { createContext } from '../server/context';
import { appRouter } from '../server/router';

export const maxDuration = 60; // seconds
export const dynamic = 'force-dynamic';

const handler = (req: Request) =>
fetchRequestHandler({
endpoint: '/api/trpc',
req,
router: appRouter,
createContext,
});

export { handler as GET, handler as POST };
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';

import { createContext } from '../server/context';
import { appRouter } from '../server/router';

export const maxDuration = 60; // seconds
export const dynamic = 'force-dynamic';

const handler = (req: Request) =>
fetchRequestHandler({
endpoint: '/api/trpc',
req,
router: appRouter,
createContext,
});

export { handler as GET, handler as POST };
that's my working file. Could you try to alter it to use your imports/naming but keep the exports and other function definitions? Maybe something strange regarding the handler refs, etc. is happening? I feel like I'm missing something obvious... 😅
10 replies
TtRPC
Created by Rule on 11/27/2024 in #❓-help
tRPC 404 in Next.js API Routes
If you console.log at the line above awaiting the fetchRequestHandler, does it log anything? Also, I have a createContext for the fetchRequestHandler - maybe that's needed?
10 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
That would be great, thanks! We would like to eventually move away from having to have all the Xata fields, though it's not much of an issue. I know you are working on that. Are there any updates when we can drop those, or has something changed regarding this? In any case, we would like to be able to edit those special fields in the dashboard. It's a great way to not have to have an up-and-running Xata SDK implementation that enables file field updates. So: Is will this issue be fixed, even for the native sql table editor setting?
17 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
Btw, this solved the issue. Could you briefly explain the downsides of keeping this disabled?
17 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
Nvm, I found it. I'll check if it works now
17 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
Where can I find this setting?
17 replies
XXata
Created by Michael Schaufelberger on 11/22/2024 in #help
Xata Dashboard error when trying to delete a file
Same error when trying to create a fresh record: 4043c709-d726-94f1-a1a3-eb535eb899ff
17 replies