ewll / db-bundle
数据库工具包
2.21.4
2020-09-28 10:33 UTC
Requires
- php: ^7.2
- psr/simple-cache: ^1.0
- symfony/cache: ^5
- symfony/form: ^5
- symfony/framework-bundle: ^5
- symfony/translation: ^5
- 2.21.4
- 2.21.3
- 2.21.2
- 2.21.1
- 2.21
- 2.20.1
- 2.20
- 2.19
- 2.18
- 2.17.2
- 2.17.1
- 2.17
- 2.16
- 2.15.1
- 2.15
- 2.14
- 2.13
- 2.12.3
- 2.12.2
- 2.12.1
- 2.12
- 2.11.2
- 2.11.1
- 2.11
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10
- 2.9
- 2.8
- 2.7
- 2.6
- 2.5.1
- 2.5
- 2.4.1
- 2.4
- 2.3.2
- 2.3.1
- 2.3
- 2.2
- 2.1
- 2.0
- dev-master / 1.x-dev
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-2-10-3-cache-fix
This package is auto-updated.
Last update: 2024-09-28 19:09:28 UTC
README
迁移
创建一个实现 Ewll\DBBundle\Migration\MigrationInterface 接口的类 App\Migration\MigrationYmdHis。
将迁移的向上 SQL 代码放入 ::up() 方法中,向下 SQL 代码放入 ::down() 方法中,描述放入 ::getDescription() 方法中。
命令
ewll:db:migrate- 列出迁移。--all- 迁移全部。--up YmdHis- 迁移特定一个。--down YmdHis- 迁移向下特定一个。
ewll:db:entity-cache- 创建实体缓存。在实体创建或更新后使用。