我正在运行 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
模块的工作原理吗?