【发布时间】:2013-05-31 13:11:20
【问题描述】:
我正在运行 Kohana 3.3 并希望将数据库迁移添加到我的项目中。
我添加了以下模具https://github.com/kohana-minion/tasks-migrations,但不知道如何让它工作。
我可以看到运行./minion migrations:new --help 的帮助文件,但我不明白group 需要什么值。从文档中说:
--group=group_name
This is a required config option, use it specify in which group the
migration should be stored. Migrations are stored in a `migrations`
directory followed by the group name specified. By default, the `migrations`
directory is created in `APPPATH` but that can be changed with `--location`
--location=modules/auth
Specified the path of the migration (without the `migrations` directory).
This value is defaulted to `APPPATH`
# The migration will be created in `modules/myapp/migrations/myapp/`
--group=myapp --location=modules/myapp
--description="Description of migration here"
This is an arbitrary description of the migration, used to build the
filename. It is required but can be changed manually later on without
affecting the integrity of the migration.
我一直在寻找示例,但还没有找到。我有一个现有的数据库,所以我想从中获取模式作为我的基础,然后运行进一步的迁移。 tasks-migrations 模块是这样工作的吗?
【问题讨论】:
标签: database kohana kohana-3 database-migration