exan/migrations 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

exan/migrations

最新稳定版本:1.0.0

Composer 安装命令:

composer require exan/migrations

包简介

Simple framework agnostic migrations

README 文档

README

A very simple framework agnostic migrations package.

composer require exan/migrations

How it works

For the migrations, you provide an up.php and an optional down.php. When running the migrations, all up.php scripts will be run if they have not previously ran.

After running a migration, a .migrated file will be created. You should add these to your .gitignore your-migration-dir/*/.migrated.

Creating a migration

You can create a migration using ./vendor/exan/migrations/bin/migrate create your-migration-dir your-migration-name.

This will create a migration called (creation date)_your-migration-name in the directory your-migration-dir. You can then modify up.php and down.php. You can also choose to delete down.php if preferred.

Running migrations

You can run the migrations using ./vendor/exan/migrations/bin/migrate migrate and roll them back with ./vendor/exan/migrations/bin/migrate rollback

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-17