Skip to content
Discussion options

You must be logged in to vote

The default for uuid columns is set only when using primaryKey, and if you don't want it you can add default(null):

change(async (db) => {
  await db.createTable('tmp', (t) => ({
    pkey: t.uuid().primaryKey().default(null),
  }));
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by IlyaSemenov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants