mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
Update 20240930134623_secret-sharing-string-id.ts
This commit is contained in:
@@ -63,6 +63,9 @@ export async function down(knex: Knex): Promise<void> {
|
|||||||
|
|
||||||
// Set the new column as primary key
|
// Set the new column as primary key
|
||||||
t.primary(["id"]);
|
t.primary(["id"]);
|
||||||
|
|
||||||
|
// Set the id column to use a UUID default
|
||||||
|
t.uuid("id").defaultTo(knex.raw("gen_random_uuid()")).notNullable().alter();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user