Skip to content

Commit

Permalink
Update 20240930134623_secret-sharing-string-id.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Sep 30, 2024
1 parent 8220e51 commit 868af64
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export async function down(knex: Knex): Promise<void> {

// Set the new column as primary key
t.primary(["id"]);

// Set the id column to use a UUID default
t.uuid("id").defaultTo(knex.raw("gen_random_uuid()")).notNullable().alter();
});
}
}

0 comments on commit 868af64

Please sign in to comment.