Download the PHP package maxim-oleinik/blade-migrations-laravel without Composer
On this page you can find all versions of the php package maxim-oleinik/blade-migrations-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package blade-migrations-laravel
Database Migrations - Laravel
An intelligent alternative version of Laravel 5 Database Migrations
Features
- Using raw SQL queries
- you can use all the capabilities of your database to describe the structure and changes
- easy work with procedures and functions
- safe data migrations (INSERT/UPDATE)
- IDE native syntax support
- Running migrations within a transaction with automatic rollback in case of an error (if your database supports it, PostgreSQL for example)
- Dynamic output running the SQL-queries
- Automatic rollback after switching the branch (for reviewing, testing, demo, building at permanent/staging database)
- Auto-update the migration after editing (version change in the name of the migration file)
- Apply with rollback testing -
UD-DOWN-UP
- Rollback or Reload any selected migration
Requirements
- PHP >= 7.0
- Laravel >= 5.1 (supports all versions 5.1 - 8.X)
Syntax
--TRANSACTION
- if specified, the migration will be launched within a transaction- Instructions are separated by
--UP
and--DOWN
tags. - The SQL queries are separated by
";"
(the last character at the end of the line)
If you need to change the delimiter (when in SQL you have to use ";"
)
Install
-
Require this package with composer using the following command:
-
Update
config/database.php
-
Register ServiceProvider at
config/app.php
for Laravel < 5.5for Laravel 6/7/8.X
- Create migration table
Usage
Create Migration file
Status
- Y - applied migration
- D - have to rollback (no this migration in the current branch/revision)
- A - not applied yet, next to be run
Migrate
Rollback
The migrate file with SQL-commands is saved to DB after applying the migration. So the rollback is processing from this saved instructions. This is done to be able to rollback the migration when project switches to another branch which does not contains this file.
Reload
Rollback migration and run it again
All versions of blade-migrations-laravel with dependencies
maxim-oleinik/blade-migrations Version ^0.2
laravel/framework Version >=5.1