Download the PHP package maxim-oleinik/blade-migrations without Composer
On this page you can find all versions of the php package maxim-oleinik/blade-migrations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maxim-oleinik/blade-migrations
More information about maxim-oleinik/blade-migrations
Files in maxim-oleinik/blade-migrations
Download maxim-oleinik/blade-migrations
More information about maxim-oleinik/blade-migrations
Files in maxim-oleinik/blade-migrations
Vendor maxim-oleinik
Package blade-migrations
Short Description Raw SQL database migration tool for PHP apps
License MIT
Package blade-migrations
Short Description Raw SQL database migration tool for PHP apps
License MIT
Please rate this library. Is it a good library?
Informations about the package blade-migrations
Blade/Migrations
This library provides Database structure manipulation commands, see implementations:
- Symfony/Console - https://github.com/maxim-oleinik/blade-migrations-symfony
- Laravel/Artisan - https://github.com/maxim-oleinik/blade-migrations-laravel
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
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
-
Composer
-
Implement
\Blade\Database\DbConnectionInterface
to connect with your database, see https://github.com/maxim-oleinik/blade-database - Setting up
Commands
Status - \Blade\Migrations\Operation\StatusOperation
Returns an array with current migrations state
Where CODE is:
- Y - applied migration
- D - have to rollback (no this migration in the current branch/revision)
- A - not applied yet, next to be run
Migrate - \Blade\Migrations\Operation\MigrateOperation
Rollback - \Blade\Migrations\Operation\RollbackOperation
Make migration file - \Blade\Migrations\Operation\MakeOperation
Install - \Blade\Migrations\Repository\DbRepository
Create migration table
All versions of blade-migrations with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
maxim-oleinik/blade-database Version ^0.3.0
psr/log Version ~1.0
symfony/finder Version >=2.0
maxim-oleinik/blade-database Version ^0.3.0
psr/log Version ~1.0
symfony/finder Version >=2.0
The package maxim-oleinik/blade-migrations contains the following files
Loading the files please wait ....