mirror of https://github.com/nocodb/nocodb
Pranav C
3 years ago
4 changed files with 33 additions and 20 deletions
@ -0,0 +1,11 @@ |
|||||||
|
import { NcUpgraderCtx } from '../NcUpgrader'; |
||||||
|
|
||||||
|
export default async function(ctx: NcUpgraderCtx) { |
||||||
|
const projects = await ctx.ncMeta.projectList(); |
||||||
|
|
||||||
|
for (const project of projects) { |
||||||
|
const projectConfig = JSON.parse(project.config); |
||||||
|
projectConfig.env = '_noco'; |
||||||
|
await ctx.ncMeta.projectUpdate(project?.id, projectConfig); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue