From ca061f5a9d9b403d3e794f3d44aad50a784cece9 Mon Sep 17 00:00:00 2001 From: "lpete@vmware.com" Date: Thu, 17 Aug 2023 14:52:30 -0400 Subject: [PATCH] replace pk with unique due to size constraints Signed-off-by: lpete@vmware.com --- plugins/app-backend/migrations/20211229105307_init.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/app-backend/migrations/20211229105307_init.js b/plugins/app-backend/migrations/20211229105307_init.js index 29e37b35f7..5367d5af60 100644 --- a/plugins/app-backend/migrations/20211229105307_init.js +++ b/plugins/app-backend/migrations/20211229105307_init.js @@ -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())