migrate:PostgreSQL迁移的命令行工具

时间:2021-05-25 14:21:32
【文件属性】:
文件名称:migrate:PostgreSQL迁移的命令行工具
文件大小:2.09MB
文件格式:ZIP
更新时间:2021-05-25 14:21:32
go golang postgres database migrations 迁移 PostgreSQL迁移的命令行工具 特征 运行事务中的迁移 将迁移版本详细信息存储在自动生成的表schema_migrations 。 用法 migrate -path ./db/migrations create add_field_to_table migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 up migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 up 1 migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 down migrate -

网友评论