fix: implement icon in backend and show icon in table if available

Signed-off-by: David Weber <david.weber@w3tec.ch>
Signed-off-by: David Weber <david.weber.schenker@gmail.com>
This commit is contained in:
David Weber
2024-09-03 00:13:51 +02:00
parent 8acaa4b728
commit 4a53dd0384
6 changed files with 80 additions and 4 deletions
@@ -0,0 +1,33 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
exports.up = async function up(knex) {
await knex.schema.alterTable('notification', table => {
table.string('icon', 255).nullable();
});
await knex.schema.alterTable('broadcast', table => {
table.string('icon', 255).nullable();
});
};
exports.down = async function down(knex) {
await knex.schema.alterTable('notification', table => {
table.dropColumn('icon');
});
await knex.schema.alterTable('broadcast', table => {
table.dropColumn('icon');
});
};