command
module
Version:
v0.0.0-...-c566858
Opens a new window with list of versions in this module.
Published: May 26, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Hoteler的数据库迁移
Hoteler的数据库迁移模块基于migrate。
使用
升级
go build -o migrate migration.go && ./migrate(?.exe) up
降级
go build -o migrate migration.go && ./migrate(?.exe) down
修复
go build -o migrate migration.go && ./migrate(?.exe) force
新建数据库迁移脚本
go build -o migrate migration.go && ./migrate(?.exe) create sql-file-name
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.