承接 phpolar/mysql-migrations 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

phpolar/mysql-migrations

最新稳定版本:1.0.2

Composer 安装命令:

composer require phpolar/mysql-migrations

包简介

Adds support for running migrations against a MySql database.

README 文档

README

Application Logo
PHPolar MySql Migrations

Adds support for running migrations against a MySql database.

Coverage Status Latest Stable Version Total Downloads License PHP Version Require

PHPolar Migration Runner (for MySqL)

DESCRIPTION

A command line tool that supports database migration management

USAGE

mysqlmi [options] command

AVAILABLE COMMANDS

create -  Generates a stub migration in the specified directory
run    -  Executes all pending database migrations located in the specified directory
revert -  Reverts the last successfully run migration

ARGUMENTS

directory -  The directory that contains the migrations

OPTIONS

-h, --help Display this help message
-n, --name The name of the migration to create

SETUP

Create a connection.php file in your working directory that returns an instance of PDO.
Specify the directory containing the migrations when running the run -  or create command.
If a directory is not supplied, the script will use a migrations folder in the working directory.

CREATING A MIGRATION

"Migration" and a 13 digit timestamp will be prepended to the filename.
For example, mysqlmi --name CreateProductTable create ./migrations
will generate a file named Migration1764993752674CreateProductTable.php
in the migrations folder.

EXAMPLES

mysqlmi --name CreateProductTable create ./migrations
mysqlmi run ./migrations
mysqlmi revert

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固