Update 20240930134623_secret-sharing-string-id.ts

This commit is contained in:
Daniel Hougaard
2024-09-30 18:43:48 +04:00
parent fa63c150dd
commit 7e820745a4

View File

@@ -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();
});
}
}