fix(workspaces): support workspace logos as base64 strings (#2556)
* fix(workspaces): support workspace logos as base64 strings * fix(workspaces): fix those testsss * fix(workspaces): migration! and more test fixes
This commit is contained in:
@@ -6,7 +6,7 @@ export type Workspace = {
|
||||
description: string | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
logoUrl: string | null
|
||||
logo: string | null
|
||||
}
|
||||
|
||||
export type WorkspaceWithOptionalRole = Workspace & { role?: WorkspaceRoles }
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Knex } from 'knex'
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('workspaces', (table) => {
|
||||
table.dropColumn('logoUrl')
|
||||
table.text('logo')
|
||||
})
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable('workspaces', (table) => {
|
||||
table.dropColumn('logo')
|
||||
table.text('logoUrl')
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user