UUID column without default in migration #159
-
|
I'm using uuid keys in the database that I'm always generating on the app side with uuidv7. As such, I don't want the database to have |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The default for uuid columns is set only when using change(async (db) => {
await db.createTable('tmp', (t) => ({
pkey: t.uuid().primaryKey().default(null),
}));
}); |
Beta Was this translation helpful? Give feedback.
-
|
It was working before but with some nuances, I published improvements for it so |
Beta Was this translation helpful? Give feedback.
The default for uuid columns is set only when using
primaryKey, and if you don't want it you can adddefault(null):