Skip to content

Commit

Permalink
Added not-null constraint for settings tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Azarattum committed Jan 5, 2024
1 parent f33c961 commit a8005df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/crdata/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -45,5 +45,5 @@ export const settings = ({ store }: DB) =>
.executeTakeFirstOrThrow()
.then((x) => x.key);
},
}
},
);

0 comments on commit a8005df

Please sign in to comment.