Download the PHP package imiphp/imi-migration without Composer

On this page you can find all versions of the php package imiphp/imi-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imi-migration

imi-migration

Latest Version Php Version Swoole Version imi License

介绍

此项目是 imi 框架的数据库迁移组件。

正在测试阶段,使用时请先确认 SQL 无误后再执行,本项目不对删库删数据负责。

安装

composer require imiphp/imi-migration:~2.1.0

使用说明

模型同步到表结构

同步表结构

将数据库中的数据表结构升级为模型中定义的结构。

生成同步结构 SQL 语句

输出到命令行:

保存到文件:

数据库迁移

配置

@app.beans:

上述配置是默认配置,不配置时自动启用。

目录

.migration 是存放数据库迁移文件和版本信息的目录,请勿将 .migration/version 提交到版本控制系统。

执行数据库迁移

执行前询问:

强制执行:

请谨慎操作

执行数据库回滚

执行前询问:

强制执行:

请谨慎操作

通用参数

指定连接池

不指定时使用默认连接池

指定连接参数

免费技术支持

QQ群:17916227 点击加群,如有问题会有人解答和修复。

运行环境

版权信息

imi-migration 依赖 phpmyadmin/sql-parser,所以开源协议受到污染,必须是 GPL-2.0,所有基于本项目的代码都要开源。

建议仅将此组件作为独立工具安装使用,不要在项目中调用此项目中的任意代码,这样就不受开源协议污染了!

捐赠

开源不求盈利,多少都是心意,生活不易,随缘随缘……


All versions of imi-migration with dependencies

PHP Build Version
Package Version
Requires yurunsoft/sql-diff Version ~1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package imiphp/imi-migration contains the following files

Loading the files please wait ....