Rodrigo
Rodrigo
Explore posts from servers
CDCloudflare Developers
Created by Rodrigo on 6/3/2024 in #general-help
Unable to purchase any subscriptions
I'm unable to purchase any subscriptions. It all started on Friday trying to upgrade the SSL package to the Advanced Certificate Manager. Since that did not work, I created a ticket. No response yet so I thought I'd buy the Business subscription to have access to the live chat since this issue is really urgent for me. However, that also failed to process. I tried multiple cards and all of them should work and have enough funds but won't with Cloudflare.
1 replies
DTDrizzle Team
Created by Rodrigo on 3/21/2024 in #help
Unable to rename table that uses a composite key
When renaming a table that uses composite key I get the following error:
drizzle-kit: v0.20.14
drizzle-orm: v0.30.4

TypeError: Cannot read properties of undefined (reading 'compositePrimaryKeys')
...
drizzle-kit: v0.20.14
drizzle-orm: v0.30.4

TypeError: Cannot read properties of undefined (reading 'compositePrimaryKeys')
...
Here is an excerpt of my schema showing the table:
export const userToAccount = pgTable(
'user_to_account', // This was changed from something else
{
accountId: uuid('account_id')
.references(() => accounts.id)
.notNull(),
userId: uuid('user_id')
.references(() => users.id)
.notNull(),
createdAt: timestamp('created_at').defaultNow().notNull(),
},
(table) => ({
pk: primaryKey({ columns: [table.userId, table.accountId] }),
}),
);
export const userToAccount = pgTable(
'user_to_account', // This was changed from something else
{
accountId: uuid('account_id')
.references(() => accounts.id)
.notNull(),
userId: uuid('user_id')
.references(() => users.id)
.notNull(),
createdAt: timestamp('created_at').defaultNow().notNull(),
},
(table) => ({
pk: primaryKey({ columns: [table.userId, table.accountId] }),
}),
);
2 replies