feat(workspaces): work(space) invader default logos (#2708)
* feat(workspaces): add default logo index * Added WorkspaceAvatar component * Added WorkspaceAvatar component * Fix issues * Fix Avatar --------- Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ export type Workspace = {
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
logo: string | null
|
||||
defaultLogoIndex: number
|
||||
}
|
||||
|
||||
export type WorkspaceWithOptionalRole = Workspace & { role?: WorkspaceRoles }
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import { Knex } from 'knex'
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('workspaces', (table) => {
|
||||
table.integer('defaultLogoIndex').defaultTo(0).notNullable()
|
||||
})
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('workspaces', (table) => {
|
||||
table.dropColumn('defaultLogoIndex')
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user