nocobase/packages/api/src/migrate.ts
2021-04-07 17:10:52 +08:00

16 lines
214 B
TypeScript

// @ts-ignore
const keys = process.argv;
// @ts-ignore
global.sync = {
force: false,
alter: {
drop: false,
},
};
// @ts-ignore
const filename: string = keys.pop();
require(`./migrations/${filename}`);