Download the PHP package dastanaron/yii2-migrate-updater without Composer

On this page you can find all versions of the php package dastanaron/yii2-migrate-updater. 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 yii2-migrate-updater

update migration to migrate/redo

На русском ТУТ

This extension allows you not to lose data when executing ./yii migrate/redo

We all know that Yii2 does not have a table update system. There is redo, which removes the table and recreates it according to the specified rules. This is good, but sometimes, You need to update the system, including the tables and still not lose data.

This solution allows this, but provided that the new fields appearing in the table will be with the resolution null. In addition, the new table should not delete the old columns.

Then maybe we'll fix it, but in the initial stages it will be like this.

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file and run

Usage

The use is fairly simple, you must install this solution and connect the class in your migration class.

To save migrations, you need to connect the migration extension class, and use it, to create their own migrations. In addition, you must declare a public variable with the table name public $tableName

By default, the class uses a flag that allows or denies the storage of data, it is specified in the parent class as public $saveData = true; if you do not need to try to save data, reassign this property in its class to disable this functionality

This functionality is implemented by the auxiliary class TableData. Below, you can see its methods and properties that you can use outside of migration extensions and for diagnostics.

Methods of the TableData class

Attention

After reading, the dump is deleted

If you want to see an array of collected or other data, then you can use the public properties of the class TableData

Public Properties


All versions of yii2-migrate-updater with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.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 dastanaron/yii2-migrate-updater contains the following files

Loading the files please wait ....