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:
Chuck Driesler
2024-08-02 12:04:20 +01:00
committed by GitHub
parent f5b262f4ea
commit c97ccb48a1
20 changed files with 115 additions and 75 deletions
@@ -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')
})
}