zebapy
04/03/2021, 5:32 PMRyan
04/06/2021, 7:35 AM.sql
migration file as follows:
UPDATE "my_table" SET "uuid_column" = generate_uuid();
So the steps you would need to take is:
1. Create the field
2. Populate the field with UUID’s
3. Set it as the primary key after all rows are populatedAlberto Perdomo
id String @id @db.Uuid @default(dbgenerated("gen_random_uuid()"))
Note: requires the pgcrypto
extension.zebapy
04/06/2021, 1:18 PMuuid
package as I’m doing some data grooming / creating csv files from node, which then get imported directly without prisma at that time