mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add support for adding a collection accent color (#5818)
* Added icon_color to directus_collections Added migrations Added color property to select-icon Fixed select-icon placeholder * Use icon color in collection header bar. * Set `collection` and `note` fields to hald witdh * Rename icon_color->color Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('directus_collections', (table) => {
|
||||
table.string('color').nullable();
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('directus_collections', (table) => {
|
||||
table.dropColumn('color');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user