How to make this adaptation automatically via `schema.ts`? As in the `session` table, for example:

How to make this adaptation automatically via schema.ts? As in the session table, for example:
export const sessions = pgTable('session', {
sessionToken: text('sessionToken').primaryKey(),
userId: text('userId')
.notNull()
.references(() => users.id, {onDelete: 'cascade'}),
expires: timestamp('expires', {mode: 'date'}).notNull()
})
export const sessions = pgTable('session', {
sessionToken: text('sessionToken').primaryKey(),
userId: text('userId')
.notNull()
.references(() => users.id, {onDelete: 'cascade'}),
expires: timestamp('expires', {mode: 'date'}).notNull()
})
No description
8 Replies
Lucas Bonafé
Lucas BonaféOP7mo ago
When clicking on "Adapt all tables at once", the xata_ fields are added. And how to do the opposite, undoing this adaptation...?
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
AndrewF
AndrewF7mo ago
Sorry you ran into this. It should be resolved now - could you retry the operations?
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Jon
Jon7mo ago
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Jon
Jon7mo ago
I am using N8N and keep getting the following error: Issues: input values have 2 keys, you must specify an input key or pass only 1 key as input (input values have 2 keys, you must specify an input key or pass only 1 key as input) Execution Error. Help would be highly appreciated 🙂
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?