knex-migrate-sql-file:使用sql文件而不是`knex.schema`方法

时间:2021-04-30 07:08:04
【文件属性】:
文件名称:knex-migrate-sql-file:使用sql文件而不是`knex.schema`方法
文件大小:53KB
文件格式:ZIP
更新时间:2021-04-30 07:08:04
JavaScript knex-migrate-sql-文件 使用sql文件而不是knex.schema方法。 导出up和down函数,该函数对带有相同文件名的.up.sql和.down.sql附加SQL文件执行knex.raw()方法。 概要 创建knex迁移文件 将此库导入迁移文件 创建SQL文件 $ knex migrate:make add-user-table Created Migration: /some/path/20180516163212_add-user-table.js /some/path/20180516163212_add-user-table.js // Don't forget function call :right_arrow_curving_down: module . exports = require ( "knex-migrate-sql-file" ) ( ) ; /
【文件预览】:
knex-migrate-sql-file-master
----package.json(855B)
----LICENSE(1KB)
----package-lock.json(216KB)
----.gitignore(3KB)
----README.hbs(851B)
----lib()
--------index.js(2KB)
--------index.test.up.sql(12B)
--------index.test.js(456B)
--------index.test.down.sql(14B)
----.prettierrc.js(65B)
----README.md(2KB)
----.editorconfig(535B)
----.gitattributes(627B)

网友评论