allow longer URLs to be registered in software-catalog

Signed-off-by: Kashish Mittal <kmittal@redhat.com>
This commit is contained in:
Kashish Mittal
2024-09-17 12:55:07 -04:00
parent 18369c1895
commit 83a8830910
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-catalog-backend': patch
---
Change `locations` table's `target` column to text
Change `refresh-keys` table's `key` column to text
@@ -36,7 +36,7 @@ exports.up = async function up(knex) {
.comment('Auto-generated ID of the location');
table.string('type').notNullable().comment('The type of location');
table
.string('target')
.text('target')
.notNullable()
.comment('The actual target of the location');
})
@@ -32,7 +32,7 @@ exports.up = async function up(knex) {
.onDelete('CASCADE')
.comment('A reference to the entity that the refresh key is tied to');
table
.string('key')
.text('key')
.notNullable()
.comment(
'A reference to a key which should be used to trigger a refresh on this entity',