feat(workspaces): add workspace creation state (#3578)

This commit is contained in:
Gergő Jedlicska
2024-11-28 20:50:53 +01:00
committed by GitHub
parent b2cebea7eb
commit ec27e394d9
20 changed files with 271 additions and 93 deletions
@@ -0,0 +1,18 @@
import { Knex } from 'knex'
export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable('workspace_creation_state', (table) => {
table
.text('workspaceId')
.primary()
.references('id')
.inTable('workspaces')
.onDelete('cascade')
table.boolean('completed').notNullable()
table.jsonb('state').notNullable()
})
}
export async function down(knex: Knex): Promise<void> {
await knex.schema.dropTable('workspace_creation_state')
}