asko/migrator 问题修复 & 功能扩展

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

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

asko/migrator

最新稳定版本:v1.0.2

Composer 安装命令:

composer require asko/migrator

包简介

A simple database migration library.

README 文档

README

codecov

A simple, extendable database migration tool with out of box support for MySQL.

Installation

composer require asko/migrator

Usage

Your migration files should be placed in a directory. Each migration file is just a regular SQL file with a {up|down}.sql extension. The migrations are run in file name order, so you should prefix the files numerically or with a timestamp, e.g 001_create_users_table.up.sql.

use Asko\Migrator\Migrator;
use Asko\Migrator\Drivers\MysqlDriver;

$migrator = new Migrator('migrations_path', new MysqlDriver(...));

// Run migrations
$migrator->migrate();

// Revert last migration
$migrator->revert();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-30