Create endpoint and controller function for user column migration.
This commit is contained in:
parent
bbda776c49
commit
3634687442
|
@ -158,3 +158,5 @@ export async function validateExistingTableImport(ctx: UserCtx) {
|
||||||
ctx.status = 422
|
ctx.status = 422
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function migrate(ctx: UserCtx) {}
|
||||||
|
|
|
@ -167,4 +167,11 @@ router
|
||||||
tableController.bulkImport
|
tableController.bulkImport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.post(
|
||||||
|
"/api/tables/:tableId/migrate",
|
||||||
|
paramResource("tableId"),
|
||||||
|
authorized(BUILDER),
|
||||||
|
tableController.migrate
|
||||||
|
)
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
|
Loading…
Reference in New Issue