diff --git a/packages/crdata/stores/settings.ts b/packages/crdata/stores/settings.ts index 9a690cfa..29329091 100644 --- a/packages/crdata/stores/settings.ts +++ b/packages/crdata/stores/settings.ts @@ -13,7 +13,7 @@ export const settings = ({ store }: DB) => await db.schema .createTable(collection) .ifNotExists() - .addColumn("key", "text", (x) => x.primaryKey()) + .addColumn("key", "text", (x) => x.primaryKey().notNull()) .addColumn("value", "text") .execute(); await db.schema @@ -45,5 +45,5 @@ export const settings = ({ store }: DB) => .executeTakeFirstOrThrow() .then((x) => x.key); }, - } + }, );