sqliteTable deprecated.

Looks like every declaration of sqliteTable is deprecated without the 3rd parameter. But typically this is just the default index or have I missed something?
3 Replies
Mario564
Mario5642mo ago
This is a known issue. Will be addressed soon
nev the dev
nev the dev2mo ago
it's fixed in the latest release
Liam
Liam2mo ago
Running into this on 0.38.3 with the following table:
export const workspaceMembers = sqliteTable(
"workspace_member",
{
workspaceId: text("workspace_id").notNull(),
userId: text("user_id").notNull(),
createdAt: integer("created_at", { mode: "timestamp" }).notNull(),
updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(),
},
(table) => ({
pk: primaryKey({ columns: [table.workspaceId, table.userId] }),
}),
);
export const workspaceMembers = sqliteTable(
"workspace_member",
{
workspaceId: text("workspace_id").notNull(),
userId: text("user_id").notNull(),
createdAt: integer("created_at", { mode: "timestamp" }).notNull(),
updatedAt: integer("updated_at", { mode: "timestamp" }).notNull(),
},
(table) => ({
pk: primaryKey({ columns: [table.workspaceId, table.userId] }),
}),
);

Did you find this page helpful?