Skip to content

Commit

Permalink
Merge pull request #29 from kcoderhtml/allergies-fix
Browse files Browse the repository at this point in the history
bug: Add default value for allergies column in User table
  • Loading branch information
taciturnaxolotl authored Apr 29, 2024
2 parents 5b041a0 + 3ae2e32 commit ededea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const User = defineTable({
email: column.text(),
image: column.text(),
role: column.text(),
allergies: column.text({ optional: true }),
allergies: column.text({ optional: true, default: "please fill out" }),
},
indexes: {
userIdx: { on: ["userId"], unique: true },
Expand Down

0 comments on commit ededea3

Please sign in to comment.