replace pk with unique due to size constraints

Signed-off-by: lpete@vmware.com <lpete@vmware.com>
This commit is contained in:
lpete@vmware.com
2023-08-17 14:52:30 -04:00
parent 2a6250bb4e
commit ca061f5a9d
@@ -24,7 +24,11 @@ exports.up = async function up(knex) {
table.comment(
'A cache of static assets that where previously deployed and may still be lazy-loaded by clients',
);
table.text('path').primary().notNullable().comment('The path of the file');
table
.text('path', 'text')
.unique()
.notNullable()
.comment('The path of the file');
table
.dateTime('last_modified_at')
.defaultTo(knex.fn.now())