feat(workspaces): add workspace creation state (#3578)
This commit is contained in:
+18
@@ -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')
|
||||
}
|
||||
Reference in New Issue
Block a user