diff --git a/.changeset/mighty-forks-exercise.md b/.changeset/mighty-forks-exercise.md new file mode 100644 index 0000000000..af842ecba9 --- /dev/null +++ b/.changeset/mighty-forks-exercise.md @@ -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 diff --git a/plugins/catalog-backend/migrations/20200511113813_init.js b/plugins/catalog-backend/migrations/20200511113813_init.js index 710ff537e0..5b7e3b8dec 100644 --- a/plugins/catalog-backend/migrations/20200511113813_init.js +++ b/plugins/catalog-backend/migrations/20200511113813_init.js @@ -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'); }) diff --git a/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js b/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js index a7ec819489..ca0a477622 100644 --- a/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js +++ b/plugins/catalog-backend/migrations/20220616202842_refresh_keys.js @@ -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',