node-database-migration:数据库迁移运行程序

时间:2021-02-16 15:42:38
【文件属性】:
文件名称:node-database-migration:数据库迁移运行程序
文件大小:69KB
文件格式:ZIP
更新时间:2021-02-16 15:42:38
TypeScript 节点数据库迁移 数据库迁移运行程序 将运行您的迁移功能 将根据您的设置查找和运行迁移(默认为最新版本和新数据库)。 失败时停止运行迁移 如果currentVersion为null ,则运行所有剩余的迁移。 用法 导入软件包并运行迁移: yarn add @klw/node-database-migration import { migrate } from "@klw/node-database-migration"; const currentVersion = null; const migrations = { one: { version: "1", up: () => Promise.resolve(), // Your migration function down: () => Promise.resolve(), }, t
【文件预览】:
node-database-migration-master
----.gitignore(32B)
----package.json(1KB)
----tslint.json(66B)
----src()
--------migrate.ts(2KB)
--------__tests__()
--------index.ts(244B)
--------types.ts(518B)
----LICENSE(1KB)
----tsconfig.json(216B)
----.github()
--------workflows()
----README.md(2KB)
----jestconfig.json(216B)
----.prettierrc(50B)
----yarn.lock(155KB)

网友评论