devsuperstars/migrations
最新稳定版本:1.0.2
Composer 安装命令:
composer require devsuperstars/migrations
包简介
Сreating migrations for a project
README 文档
README
Сreating migrations for a project
migrations can only work with the lipid framework
Quickstart
$ mkdir migrations $ composer require devsuperstars/migrations
Create your migrations in the directory migrations/ as sql files in order, starting with the number 1.
Example: migrations/1.sql, migrations/2.sql ... migrations/n.sql
SQL file must contain sql-query, for example
ALTER TABLE `db`.`table` ADD COLUMN `id` INT(11) NOT NULL AUTO_INCREMENT FIRST, DROP PRIMARY KEY, ADD PRIMARY KEY (`id`); }
SQL file can contain multiple sql queries
add to your composer.json scripts
"scripts": { ... "migrate": [ "vendor/bin/migrate" ] }
run migrations:
$ composer migrate
统计信息
- 总下载量: 4.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-09