Download the PHP package coderan/laravel-data-migrations without Composer
On this page you can find all versions of the php package coderan/laravel-data-migrations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coderan/laravel-data-migrations
More information about coderan/laravel-data-migrations
Files in coderan/laravel-data-migrations
Package laravel-data-migrations
Short Description An extension to allow you to separate data migrations from structure migrations
License MIT
Informations about the package laravel-data-migrations
Data Migrations for Laravel
This extension allows you to separate data migrations from structure migrations.
Installation
The preferred way to install this extension is through composer.
With Composer installed, you can then install the extension using the following commands:
or add
to the section of your composer.json
file.
Configuration
- Register the ServiceProvider in your config/app.php service provider list. This step can be skipped in Laravel 5.5+
config/app.php
- Publish the new assets.
This will create the default migrations directory and the config/data-migrations.php file.
Usage
By default, the table used to store the data migrations is "migrations_data" table. You can change the table on the config/data-migrations.php file.
The data migrations will be stored in the migrations_data folder of the database path if no path is specified in the command execution.
The available commands of the package are:
Create migration command
The first time you use it the data migrations table will be created.
Run migration command
Rollback migration command
The behavior of the migrations is the same as the regular migrations.
License
Copyright © 2021 José Lorente Martín [email protected].
Licensed under the MIT license. See LICENSE.txt for details.
All versions of laravel-data-migrations with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0